Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function findByName(string $name, string $locale): array |
||
25 | { |
||
26 | return $this->createQueryBuilder('b') |
||
27 | ->innerJoin('b.product', 'o') |
||
28 | ->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale') |
||
29 | ->andWhere('translation.name = :name') |
||
30 | ->setParameter('name', $name) |
||
31 | ->setParameter('locale', $locale) |
||
32 | ->getQuery() |
||
33 | ->getResult() |
||
34 | ; |
||
35 | } |
||
36 | } |
||
37 |