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