|
|
@@ -3,6 +3,7 @@ |
|
|
|
namespace Lc\CaracoleBundle\Repository\Newsletter; |
|
|
|
|
|
|
|
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; |
|
|
|
use Lc\CaracoleBundle\Repository\MerchantStoreTrait; |
|
|
|
use Lc\CaracoleBundle\Repository\SectionStoreTrait; |
|
|
|
use Lc\CaracoleBundle\Repository\StoreTrait; |
|
|
|
use Lc\SovBundle\Repository\Newsletter\NewsletterStore as SovNewsletterStore; |
|
|
@@ -12,6 +13,7 @@ class NewsletterStore extends SovNewsletterStore |
|
|
|
{ |
|
|
|
use StoreTrait; |
|
|
|
use SectionStoreTrait; |
|
|
|
use MerchantStoreTrait; |
|
|
|
|
|
|
|
public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface |
|
|
|
{ |
|
|
@@ -22,6 +24,7 @@ class NewsletterStore extends SovNewsletterStore |
|
|
|
public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface |
|
|
|
{ |
|
|
|
$this->addFilterBySectionOptionnal($query); |
|
|
|
$this->addFilterByMerchantViaSectionOptionnal($query); |
|
|
|
$query->filterIsOnlineAndOffline(); |
|
|
|
return $query; |
|
|
|
} |