unexpected extra form field named

You had an unbound input in your form and Symfony throw you an “unexpected extra form field named ‘yourfield'” error ?

Don’t worry, add a sfValitorPass() in your form description :

class DemandeForm extends BaseDemandeForm
{
   public function configure()
   {
        $this->validatorSchema['yourfield'] = new sfValidatorPass();
   }

Leave a Reply