Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function getOneNonOrderedCartByCustomer(SkuskuCustomerInterface $customer) |
||
32 | { |
||
33 | $qb = $this->createQueryBuilder('c') |
||
34 | ->where('c.status = :status') |
||
35 | ->andWhere('c.customer = :customer') |
||
36 | ->setParameter('status', SkuskuCart::STATUS_INITIAL) |
||
37 | ->setParameter('customer', $customer) |
||
38 | ->setMaxResults(1) |
||
39 | ->getQuery(); |
||
40 | |||
41 | return $qb->getOneOrNullResult(); |
||
42 | } |
||
44 |