I use a workaround for this. I know that it is not best possible
solution, but it works :-)

In my action:

$this->form = new SomeForm(SomePeer::retriveByPK($request-
>getValue('id'));
$validatorSchema = $this->form->getValidatorSchema();

if ($this->form->isNew())
  $validatorSchema['some_field']->addOption('required' => true);


Of course here you can play with submitted data in order to change the
validatorSchema  just before bind() and isValid()

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to