|
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Repository\Product; |
|
|
namespace Lc\CaracoleBundle\Repository\Product; |
|
|
|
|
|
|
|
|
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; |
|
|
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; |
|
|
|
|
|
use Lc\CaracoleBundle\Repository\MerchantStoreTrait; |
|
|
use Lc\CaracoleBundle\Repository\SectionStoreTrait; |
|
|
use Lc\CaracoleBundle\Repository\SectionStoreTrait; |
|
|
use Lc\CaracoleBundle\Repository\AbstractStore; |
|
|
use Lc\CaracoleBundle\Repository\AbstractStore; |
|
|
use Lc\SovBundle\Repository\RepositoryQueryInterface; |
|
|
use Lc\SovBundle\Repository\RepositoryQueryInterface; |
|
|
|
|
|
|
|
|
class ProductCategoryStore extends AbstractStore |
|
|
class ProductCategoryStore extends AbstractStore |
|
|
{ |
|
|
{ |
|
|
use SectionStoreTrait; |
|
|
use SectionStoreTrait; |
|
|
|
|
|
use MerchantStoreTrait; |
|
|
|
|
|
|
|
|
protected ProductCategoryRepositoryQuery $query; |
|
|
protected ProductCategoryRepositoryQuery $query; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface |
|
|
public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface |
|
|
{ |
|
|
{ |
|
|
|
|
|
$query->filterIsOnlineAndOffline(); |
|
|
$this->addFilterBySectionOptionnal($query); |
|
|
$this->addFilterBySectionOptionnal($query); |
|
|
|
|
|
$this->addFilterByMerchantViaSectionOptionnal($query); |
|
|
return $query; |
|
|
return $query; |
|
|
} |
|
|
} |
|
|
|
|
|
|