/** * @see sfForm */ public function setup() { parent::setup(); unset($this['created_at'], $this['updated_at'], $this['users_list']); $this->setWidget('description', new sfWidgetFormInputText()); $this->setValidator('name', new sfValidatorString(array('max_length' => 255, 'required' => true))); $this->setWidget('permissions_list', new sfWidgetFormDoctrineChoice(array('expanded' => true, 'multiple' => true, 'model' => 'sfGuardPermission'))); }