| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function findByOrderId(?int $orderId): ?InvoiceInterface |
||
| 21 | { |
||
| 22 | return $this->createQueryBuilder('o') |
||
| 23 | ->innerJoin('o.order', 'invoiceOrder') |
||
| 24 | ->where('invoiceOrder.id = :orderId') |
||
| 25 | ->setParameter('orderId', $orderId) |
||
| 26 | ->getQuery() |
||
| 27 | ->getOneOrNullResult() |
||
| 28 | ; |
||
| 29 | } |
||
| 30 | |||
| 42 |