I have this Code:

class DenunciaForm extends BaseDenunciaForm
{
  public function configure()
  {
    parent::configure();

     $this->widgetSchema['remitido'] = new sfWidgetFormChoice(array(
                                        'choices' => array('f' =>
'Fiscalizacion', 'c' => 'Conciliacion')
    ));
    $this->widgetSchema['detalle'] = new sfWidgetFormTextArea(array(),
array('cols' => '90', 'rows' => '10'));

    $this->setValidators(array(
      'denunciado_id'   => new sfValidatorString(array('required' =>
false)),
      'denunciante_id'  => new sfValidatorString(array('required' =>
false)),
      'detalle'         => new sfValidatorString(
                               array('required' => true),
                               array('required' => 'Campo Requerido')
                               ),
      'categoria_id'    => new sfValidatorPropelChoice(array('model' =>
'Categoria', 'column' => 'id')),
      'ilicito_id'      => new sfValidatorPropelChoice(array('model' =>
'Ilicito', 'column' => 'id')),
      'remitido'        => new sfValidatorChoice(array(
                               'choices' => array('f' =>
'Fiscalizacion', 'c' => 'Conciliacion')
                            )),
    ));

    $this->widgetSchema->setLabels(array(
      'categoria_id' => 'Categoria',
      'ilicito_id'   => 'Ilicito',
      'remitido'     => 'Remitir a'
    ));


The problem is that no matter what i chose in the 'remitido' field, it 
always show the 'invalid' error message.

How can i fix this??

Thank U



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to