|
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace Lc\CaracoleBundle\Repository\Product; |
|
|
|
|
|
|
|
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; |
|
|
|
use Lc\CaracoleBundle\Repository\MerchantStoreTrait; |
|
|
|
use Lc\CaracoleBundle\Repository\SectionStoreTrait; |
|
|
|
use Lc\CaracoleBundle\Repository\AbstractStore; |
|
|
|
use Lc\SovBundle\Repository\RepositoryQueryInterface; |
|
|
@@ -10,6 +11,7 @@ use Lc\SovBundle\Repository\RepositoryQueryInterface; |
|
|
|
class ProductCategoryStore extends AbstractStore |
|
|
|
{ |
|
|
|
use SectionStoreTrait; |
|
|
|
use MerchantStoreTrait; |
|
|
|
|
|
|
|
protected ProductCategoryRepositoryQuery $query; |
|
|
|
|
|
|
@@ -26,7 +28,9 @@ class ProductCategoryStore extends AbstractStore |
|
|
|
|
|
|
|
public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface |
|
|
|
{ |
|
|
|
$query->filterIsOnlineAndOffline(); |
|
|
|
$this->addFilterBySectionOptionnal($query); |
|
|
|
$this->addFilterByMerchantViaSectionOptionnal($query); |
|
|
|
return $query; |
|
|
|
} |
|
|
|
|