/** * Finds user by [[username]] * * @return User|null */ public function getUser() { if ($this->_user === false) { $this->_user = Usuario::findByCpf($this->cpf); } return $this->_user; }