public function setUsername($username) { parent::setUsername($username); // El email se configura automáticamente. $this->setEmail($username . '@uco.es'); return $this; }
public function updateParent() { parent::setEmail($this->getEmail()); parent::setEmailCanonical($this->getEmailCanonical()); parent::setPassword($this->getPassword()); parent::setUsername($this->getUsername()); parent::setUsernameCanonical($this->getUsernameCanonical()); }
/** * Set the email and username. * * @param string $email * * @return User */ public function setEmail($email) { parent::setUsername($email); return parent::setEmail($email); }
public function setUsername($username) { return parent::setUsername($this->getEmail()); }