You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
488B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Reduction;
  3. class ReductionCatalogStore
  4. {
  5. protected ReductionCatalogRepositoryQuery $query;
  6. public function __construct(ReductionCatalogRepositoryQuery $query)
  7. {
  8. $this->query = $query;
  9. }
  10. public function getByProductFamily($productFamily){
  11. $query = $this->query->create();
  12. $query->filterProductFamily($productFamily);
  13. $query->filterStatus(true);
  14. return $query->findOne();
  15. }
  16. }