Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | public function findByLeagueAndSeasonWithEvents(League $league, $season) |
||
29 | { |
||
30 | $qb = $this->_em->createQueryBuilder(); |
||
31 | $qb->select(array('f', 'e')); |
||
32 | $qb->from('CoreBundle:Fixture', 'f'); |
||
33 | $qb->where('f.league = :league'); |
||
34 | $qb->setParameter('league', $league->getId()); |
||
35 | $qb->andWhere('f.season = :season'); |
||
36 | $qb->setParameter('season', $season); |
||
37 | $qb->join('f.events', 'e'); |
||
38 | |||
39 | return $qb->getQuery()->getResult(); |
||
40 | } |
||
41 | } |
||
42 |