Hi, I have a form to select some search options. I have a field that I wanto to show only if the user is logged in. I want to do something like this:
if(!$this->getUser()->hasAttribute('user')) unset($this->form->widgetSchema['mine']); that doesn't work because widgetSchema is protected. Moreover doing this would leave a dangling validator for the 'mine' field. I undestand I can create a second form class without the 'mine' field, but it would be nice if I could simply unset a field. Thanks Paolo -- 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