you should do your changes in
plugins\sfDoctrineGuardPlugin\lib\form\doctrine\sfGuardUserAdminForm.class

or

change the form class in
plugins\sfDoctrineGuardPlugin\modules\sfGuardUser\config\generator.yml

On Wed, Jan 13, 2010 at 12:46 AM, Jose San Gil <jsangi...@gmail.com> wrote:
> Hi folks!
>
> I'm trying to modify the validation of the 'permissions_list' field
> generated in the basesfGuardUserForm.class.php. I want to set the
> 'required' option to 'True'. I tried with this:
>
> class sfGuardUserForm extends PluginsfGuardUserForm
> {
>  public function configure()
>  {
>      $this->validatorSchema['permissions_list']->setOption
> ('required', True);
>  }
> }
>
> But it doesn't take effect.
>
> Also if a try to set a different widget to permissions_list, it
> doesn't works.
>
> I think this is not the right way to do that. Could you help me?
>
> Thanks
> PD: Excuse me for my english
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@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.
>
>
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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