public function getTeam(\Club\MatchBundle\Entity\League $league, \Club\MatchBundle\Entity\Team $team)
 {
     $lt = $this->_em->getRepository('ClubMatchBundle:LeagueTable')->findOneBy(array('league' => $league->getId(), 'team' => $team->getId()));
     if (!$lt) {
         $lt = $this->addTeam($league, $team);
     }
     return $lt;
 }
 public function getTeam(\Club\RankingBundle\Entity\Ranking $ranking, \Club\MatchBundle\Entity\Team $team)
 {
     $lt = $this->findOneBy(array('ranking' => $ranking->getId(), 'team' => $team->getId()));
     if (!$lt) {
         $lt = $this->addTeam($ranking, $team);
     }
     return $lt;
 }