| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | public function findOneByName($name)  | 
            ||
| 26 |     { | 
            ||
| 27 |         return $this->createQueryBuilder('o') | 
            ||
| 28 |             ->addSelect('translation') | 
            ||
| 29 |             ->leftJoin('o.translations', 'translation') | 
            ||
| 30 |             ->where('translation.name = :name') | 
            ||
| 31 |             ->setParameter('name', $name) | 
            ||
| 32 | ->getQuery()  | 
            ||
| 33 | ->getOneOrNullResult()  | 
            ||
| 34 | ;  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |