public function getId()
{
return $this->id;
}
/** * Gets the User Entity for the current request * * @return User|null Returns the User entity for the current Request */ public function getUser() { if (empty($this->_user) && $this->user->getId()) { $this->_user = User::findPk($this->user->getId()); } return $this->_user; }