public function setWidgetUsers() { $this->setWidget('IDU', new sfWidgetFormChoice(array('choices' => UsuarisSitesPeer::getSitesUsersSelect($this->getValue('IDS'), NivellsPeer::ADMIN)))); $this->setValidator('IDU', new sfValidatorPass(array(), array())); }