| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function findOneByProductCodeAndTaxonCode($productCode, $taxonCode) |
||
| 26 | { |
||
| 27 | return $this->createQueryBuilder('o') |
||
| 28 | ->innerJoin('o.product', 'product') |
||
| 29 | ->andWhere('product.code = :productCode') |
||
| 30 | ->setParameter('productCode', $productCode) |
||
| 31 | ->innerJoin('o.taxon', 'taxon') |
||
| 32 | ->andWhere('taxon.code = :taxonCode') |
||
| 33 | ->setParameter('taxonCode', $taxonCode) |
||
| 34 | ->getQuery() |
||
| 35 | ->getOneOrNullResult() |
||
| 36 | ; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |