| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function findByName($name, $locale) |
||
| 27 | { |
||
| 28 | return $this->createQueryBuilder('o') |
||
| 29 | ->addSelect('translation') |
||
| 30 | ->innerJoin('o.translations', 'translation') |
||
| 31 | ->andWhere('translation.name = :name') |
||
| 32 | ->andWhere('translation.locale = :locale') |
||
| 33 | ->setParameter('name', $name) |
||
| 34 | ->setParameter('locale', $locale) |
||
| 35 | ->getQuery() |
||
| 36 | ->getResult() |
||
| 37 | ; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |