| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BrandImageRepository extends EntityRepository implements BrandImageRepositoryInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * {@inheritdoc} |
||
| 15 | */ |
||
| 16 | public function createListQueryBuilder(string $brandCode): QueryBuilder |
||
| 17 | { |
||
| 18 | return $this->createQueryBuilder('o') |
||
| 19 | ->addSelect('brand') |
||
| 20 | ->innerJoin('o.owner', 'brand', 'WITH', 'brand.code = :brandCode') |
||
| 21 | ->setParameter('brandCode', $brandCode) |
||
| 22 | ; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function createPaginatorForBrandAndType(BrandInterface $brand, string $type): iterable |
||
| 40 | } |
||
| 41 | } |
||
| 42 |