| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function findSingleBy($id, $locale) |
||
| 32 | { |
||
| 33 | $query = $this |
||
| 34 | ->createQueryBuilder('o') |
||
| 35 | ->select('o', 'i', 's') |
||
| 36 | ->join('o.items', 'i') |
||
| 37 | ->join('i.subscription', 's') |
||
| 38 | ->where('o.id = :id') |
||
| 39 | ->setParameter('id', $id) |
||
| 40 | ->getQuery() |
||
| 41 | ; |
||
| 42 | |||
| 43 | return $this->setTranslatableHints($query, $locale) |
||
| 44 | ->getSingleResult() |
||
| 45 | ; |
||
| 46 | } |
||
| 47 | |||
| 64 |