public function getAllAboutGames(\AppBundle\Entity\Team $team) { return $this->createQueryBuilder('game')->select('game, team, country')->where('game in (:status)')->join('game.teams', 'team')->join('team.country', 'country')->setParameter('status', $team->getGames())->getQuery()->getResult(); }