Hi.... Thanks! but...... not to solve it ...
will be used checkbox must read: Computers ( ) PHP ( ) Symfony ( ) Postgree Mathematics ( ) Statistics ( ) Probability this reading: ( ) PHP ( ) Symfony ( ) Postgree ( ) Statistics ( ) Probability computer where this table QualificacaoInteresseArea php and this table QualificacaoInteresse Look my code. --------- code ------------------------ public function configure() { $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'curriculo_id' => new sfWidgetFormInputHidden(), 'qualificacao_interesse_id' => new sfWidgetFormPropelChoice(array('model' => 'QualificacaoInteresse', 'add_empty' => false, 'expanded' => true, 'multiple' => true)), 'created_at' => new sfWidgetFormInputHidden(), 'updated_at' => new sfWidgetFormInputHidden(), )); $this->widgetSchema->setLabels(array( 'qualificacao_interesse_id' => 'Qualificações & Interesses:', )); $this->setValidators(array( 'id' => new sfValidatorPropelChoice(array('model' => 'QualificacaoInteresseCv', 'column' => 'id', 'required' => false)), 'curriculo_id' => new sfValidatorPropelChoice(array('model' => 'Curriculo', 'column' => 'id')), 'qualificacao_interesse_id' => new sfValidatorPropelChoice(array('model' => 'QualificacaoInteresse', 'column' => 'id', 'multiple' => true)), 'created_at' => new sfValidatorDateTime(array('required' => false)), 'updated_at' => new sfValidatorDateTime(array('required' => false)), )); --------------------------------------------------------------------------------------------------------------------- 2010/9/17 ScherlOMatic <stefan.scherbich...@gmail.com> > Hello! > > You are using the wrong widget. Take a look at the 'select' widgets. > > One possibility would be: > > $this->setWidgets(array( > 'name' => new sfWidgetFormSelect(array( > 'choices' => self::$choices, > 'multiple' => true, > )) > )); > > > And please try to post code which is running, because of spaces and > case-sensitive words. > > > BR > > On 16 Sep., 16:49, Gerda Graciela <gerd...@gmail.com> wrote: > > Hi!!! > > > > I have two tables: Qualification and Eligibility Category. > > I want to do it as Cookbook where 'Europe' and 'America' are on the > > table Qualification Category. 'France' => 'France', 'Spain' => > > 'Spain', 'Italy' => 'Italy' are on the table qualification. > > > > Can anyone help me? > > > > ------------------------------ > > $ Choices = array ( > > 'Europe' => array ('France' => 'France', 'Spain' => 'Spain', 'Italy' > > => 'Italy'), > > 'America' => array ('USA' => 'USA', 'Canada' => 'Canada', 'Brazil' > > => 'Brazil') > > ); > > > > $ W = new sfWidgetFormChoice (array ( > > 'Choices' => $ choices, > > 'Multiple' => true, > > 'Expanded' => true, > > 'Renderer_options' => array ('template' => 'group <strong>%% </ > > strong>% options%') > > )); > > -- > 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<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- 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