public function getUser() { if ($this->hasData('user') === false) { $this->setData('user', UserModel::fromId($this->getUserId())); } return $this->getData('user'); }