Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function findByName($name, $locale) |
||
46 | { |
||
47 | return $this->createQueryBuilder('o') |
||
48 | ->innerJoin('o.translations', 'translation') |
||
49 | ->andWhere('translation.name = :name') |
||
50 | ->andWhere('translation.locale = :locale') |
||
51 | ->setParameter('name', $name) |
||
52 | ->setParameter('localeCode', $locale) |
||
53 | ->getQuery() |
||
54 | ->getResult() |
||
55 | ; |
||
56 | } |
||
57 | } |
||
58 |