protected function addTournamentToMatch($gamesPerMatch, $matchMode) { $tournament = new Tournament(); $tournament->setGamesPerMatch($gamesPerMatch); $tournament->setMatchMode($matchMode); $this->match->setTournament($tournament); }