I'd recommend using $this->useFields() instead of unsetting the fields
you don't want. It protects you from accidentally blanking new fields
if you forget to unset them across all forms for that object, and as a
bonus you can pass an argument to it to set the order that the widgets
appear.


On Feb 7, 12:47 pm, Manu <emmanuel.parf...@gmail.com> wrote:
> class mysfGuardUserAdminForm extends PluginsfGuardUserForm
> {
>   public function configure()
>   {
>     parent::configure();
>
>     $authorForm = new authorForm($this->object->Author);
>     unset($authorForm['id'], $authorForm['sf_guard_user_id'],
> $authorForm['slug']);
>     $this->embedForm('Author', $authorForm);
>   }
>
>
>
> }

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

Reply via email to