選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ProductFamilySectionPropertyRepositoryQuery.php 760B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Product;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
  5. use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait;
  6. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  7. class ProductFamilySectionPropertyRepositoryQuery extends AbstractRepositoryQuery
  8. {
  9. use SectionRepositoryQueryTrait;
  10. public function __construct(ProductFamilySectionPropertyRepository $repository, PaginatorInterface $paginator)
  11. {
  12. parent::__construct($repository, 'pfsp', $paginator);
  13. }
  14. public function filterByProductFamily(ProductFamilyInterface $productFamily): self
  15. {
  16. return $this->andWhereEqual('productFamily', $productFamily);
  17. }
  18. }