public function getUser() | public function getUser() | ||||
{ | { | ||||
if ($this->_user === false) { | if ($this->_user === false) { | ||||
$this->_user = User::findByEmail($this->email); | |||||
$this->_user = User::findOne(['email' => $this->email, 'type' => User::TYPE_INDIVIDUAL]); | |||||
} | } | ||||
return $this->_user; | return $this->_user; |