/** * @return User */ public function getUser() { if ($this->_user == null) { $this->_user = User::findByLogin($this->login); } return $this->_user; }