|
123456789101112131415161718192021222324252627282930 |
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Newsletter;
-
- use Lc\CaracoleBundle\Repository\SectionStoreTrait;
- use Lc\SovBundle\Repository\Newsletter\NewsletterStore as SovNewsletterStore;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
-
- class NewsletterStore extends SovNewsletterStore
- {
- use SectionStoreTrait;
-
- public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $query->orderBy('position');
- return $query;
- }
-
- public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $query->filterBySection($this->section);
- $query->filterIsOnlineAndOffline();
- return $query;
- }
-
- public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- return $query;
- }
- }
|