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