Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class CartRepository extends \Doctrine\ORM\EntityRepository |
||
14 | { |
||
15 | /** |
||
16 | * Prendo tutti i carrelli attivi non eliminati |
||
17 | */ |
||
18 | public function getNonOrderedCarts() |
||
19 | { |
||
20 | $qb = $this->createQueryBuilder('c') |
||
21 | ->andWhere('c.status = :status') |
||
22 | ->setParameter('status', SkuskuCart::STATUS_INITIAL) |
||
23 | ->getQuery(); |
||
24 | |||
25 | return $qb->execute(); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Prendo tutti i carrelli attivi non eliminati |
||
30 | */ |
||
31 | public function getOneNonOrderedCartByCustomer(SkuskuCustomerInterface $customer) |
||
42 | } |
||
43 | } |
||
44 |