widgetSchema['username'] = new sfWidgetFormInput(); $this->validatorSchema['username'] = new sfValidatorString(array('required' => true)); $this->widgetSchema['username']->setLabel('Uživatelské meno'); $this->widgetSchema['mail'] = new sfWidgetFormInput(); $this->validatorSchema['mail'] = new sfValidatorEmail(array('required' => true)); $this->widgetSchema['mail']->setLabel('E-mail'); $this->widgetSchema->setNameFormat('request_password_form[%s]'); $this->validatorSchema->setPostValidator(new saRequestPasswordValidator()); commonFormFunctions::setJqUiFormater($this); commonFormFunctions::addClasses($this); } public function getUser() { return Doctrine::getTable('sfGuardUser')->getProfileByMailAndUsername($this->values['mail'], $this->values['username']); } }