Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function findOneByCustomer($id, CustomerInterface $customer) |
||
42 | { |
||
43 | return $this->createQueryBuilder('o') |
||
44 | ->leftJoin('o.customer', 'customer') |
||
45 | ->andWhere('o.id = :id') |
||
46 | ->andWhere('customer = :customer') |
||
47 | ->setParameter('id', $id) |
||
48 | ->setParameter('customer', $customer) |
||
49 | ->getQuery() |
||
50 | ->getOneOrNullResult() |
||
51 | ; |
||
52 | } |
||
53 | } |
||
54 |