Hi, i solved my problem puting this code in my model: public function setMyField ($value) { $this->_set("my_field", implode("|", $value)); } public function getMyField () { $tmp = explode("|",$this->_get("my_field")); $values = array(); foreach ($tmp as $t) { $values[$t] = $t } return $values; }
Em 30/12/2010, às 10:58, Massimiliano Arione escreveu: > On 29 Dic, 17:58, "emanu.ti" <emanu...@gmail.com> wrote: >> Hi, I want to use sfWidgetFormChoice with "multiple" => true >> parameter. Here is my code: > > You need to set "multiple" option in your validator. > > cheers > Massimiliano > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en Emmanuel de Carvalho Garcia emanu...@gmail.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en