| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 38 | public function findByNamePart(string $phrase, ?string $locale = null): array  | 
            ||
| 39 |     { | 
            ||
| 40 |         return $this->createQueryBuilder('o') | 
            ||
| 41 |             ->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale') | 
            ||
| 42 |             ->andWhere('translation.name LIKE :name') | 
            ||
| 43 |             ->setParameter('name', '%'.$phrase.'%') | 
            ||
| 44 |             ->setParameter('locale', $locale) | 
            ||
| 45 | ->getQuery()  | 
            ||
| 46 | ->getResult()  | 
            ||
| 47 | ;  | 
            ||
| 48 | }  | 
            ||
| 49 | }  | 
            ||
| 50 |