Esempio n. 1
0
 public function removeTeamFromPhase(Phase $phase, Team $team)
 {
     $isClear = true;
     foreach ($phase->getPools() as $pool) {
         $isClear &= $this->removeTeamFromPool($pool, $team);
     }
     if ($isClear) {
         $phase->removeTeam($team);
     }
     $this->em->flush();
     return $isClear;
 }