- <?php
-
- namespace Lc\CaracoleBundle\Repository\Site;
-
- use Lc\CaracoleBundle\Repository\SectionStoreTrait;
- use Lc\CaracoleBundle\Repository\StoreTrait;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
- use Lc\SovBundle\Repository\Site\NewsStore as SovNewsStore;
-
- class NewsStore extends SovNewsStore
- {
- use StoreTrait;
- use SectionStoreTrait;
-
- public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $this->addFilterBySectionOptionnal($query);
- return parent::filtersDefault($query);
- }
-
- }
|