|
1234567891011121314151617181920212223 |
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Reduction;
-
- use Lc\SovBundle\Repository\AbstractStore;
-
- class ReductionCatalogStore extends AbstractStore
- {
- protected ReductionCatalogRepositoryQuery $query;
-
- public function __construct(ReductionCatalogRepositoryQuery $query)
- {
- $this->query = $query;
- }
-
- public function getByProductFamily($productFamily){
- $query = $this->query->create();
- $query->filterProductFamily($productFamily);
- $query->filterStatus(true);
- return $query->findOne();
-
- }
- }
|