public function addPlayer() { $player = PlayerServiceUtil::createPlayer(); $player->setName($this->playerName); $player->setTeamId($this->teamId); PlayerServiceUtil::updatePlayer($player); $this->showPlayerForm = true; $this->playerName = ""; return null; }
public function getPlayers($from = 0, $limit = 9999999999) { return PlayerServiceUtil::findByTeamId($this->teamId, $from = -1, $limit = -1); }