Completed
Push — master ( fa51b1...cc2045 )
by Serhii
13s
created

SeatRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 15
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A findByVenue() 0 12 1
1
<?php
2
3
namespace AppBundle\Repository;
4
5
use AppBundle\Entity\Venue;
6
7
class SeatRepository extends AbstractRepository
8
{
9
    public function findByVenue(Venue $venue)
10
    {
11
        $qb = $this->createQueryBuilder('s')
12
            ->join('s.venueSector', 'vs')
13
            ->andWhere('vs.venue = :venue')
14
            ->setParameter('venue', $venue->getId())
15
        ;
16
17
        $query = $qb->getQuery();
18
19
        return $query->execute();
20
    }
21
}
22