public function getTeam() { if (!empty($this->teamId) && empty($this->_team)) { $this->_team = Team::findPk($this->teamId); } return $this->_team; }