Completed
Push — master ( 28be56...359087 )
by Serhii
13:20
created

findVenueSectorsByPerformanceEventQueryBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace AppBundle\Repository;
4
5
use AppBundle\Entity\PerformanceEvent;
6
7
class RowsForSaleRepository extends AbstractRepository
8
{
9
    public function findVenueSectorsByPerformanceEventQueryBuilder(PerformanceEvent $performanceEvent)
10
    {
11
        $qb = $this->createQueryBuilder('s')
12
            ->join('s.venueSector', 'vs')
13
            ->andWhere('vs.venue = :venue')
14
            ->setParameter('venue', $performanceEvent->getVenue())
15
        ;
16
        return $qb;
17
    }
18
}
19