| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getForPayment(Payment $payment): array |
||
| 24 | { |
||
| 25 | $qb = $this->entityRepository->createQueryBuilder('r'); |
||
| 26 | $qb->where(':payment MEMBER OF r.payments') |
||
| 27 | ->setParameter('payment', $payment) |
||
| 28 | ->orderBy('r.createdAt', 'DESC'); |
||
| 29 | |||
| 30 | $result = $qb->getQuery()->getResult(); |
||
| 31 | |||
| 32 | return $result; |
||
|
|
|||
| 33 | } |
||
| 35 |