| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function findOneMenuByMachineNameAndLocale($machineName, $locale) |
||
| 10 | { |
||
| 11 | return $this->createQueryBuilder('m') |
||
| 12 | ->leftJoin('m.items', 'i') |
||
| 13 | ->where('m.machineName = :machineName') |
||
| 14 | ->andWhere('m.locale = :locale') |
||
| 15 | ->setParameters([ |
||
| 16 | 'machineName' => $machineName, |
||
| 17 | 'locale' => $locale, |
||
| 18 | ]) |
||
| 19 | ->getQuery() |
||
| 20 | ->getSingleResult(); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |