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.

24 lines
554B

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