Esempio n. 1
0
 /**
  * @param Team $team
  */
 public function removeTeam(Team $team)
 {
     if (!$this->teams->contains($team)) {
         return;
     }
     $this->teams->removeElement($team);
     $team->removePlayer($this);
 }
Esempio n. 2
0
 /**
  * @param Player $player
  */
 public function removePlayer(Player $player)
 {
     if (!$this->players->contains($player)) {
         return;
     }
     $this->players->removeElement($player);
     $player->removeTeam($this);
 }