/** * Finds user by [[email]] * * @return Account|null */ public function getAccount() { if ($this->_account === false) { $this->_account = Account::findByEmail($this->email); } return $this->_account; }