Example #1
0
 private function addTeam(\Club\MatchBundle\Entity\Team $team)
 {
     $match_team = new \Club\MatchBundle\Entity\MatchTeam();
     $match_team->setMatch($this->match);
     $match_team->setTeam($team);
     $this->match->addMatchTeam($match_team);
     return $match_team;
 }
Example #2
0
 /**
  * Remove match_teams
  *
  * @param Club\MatchBundle\Entity\MatchTeam $matchTeams
  */
 public function removeMatchTeam(\Club\MatchBundle\Entity\MatchTeam $matchTeams)
 {
     $this->match_teams->removeElement($matchTeams);
 }