| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function findByName($name, $locale) |
||
| 40 | { |
||
| 41 | return $this->createQueryBuilder('o') |
||
| 42 | ->leftJoin('o.translations', 'translation') |
||
| 43 | ->andWhere('translation.name = :name') |
||
| 44 | ->andWhere('translation.locale = :locale') |
||
| 45 | ->setParameter('name', $name) |
||
| 46 | ->setParameter('localeCode', $locale) |
||
| 47 | ->getQuery() |
||
| 48 | ->getResult() |
||
| 49 | ; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |