/** * @param TeamGame $game * @return Team */ public function addGame(TeamGame $game) { if (!$this->games->contains($game)) { $game->setTeam($this); $this->games->add($game); } return $this; }
/** * @param TeamGame $teamGame * @return Game */ public function addTeamGame(TeamGame $teamGame) { $teamGame->setGame($this); $this->teamGames->add($teamGame); return $this; }