You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 line
560B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Site;
  3. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  4. use Lc\CaracoleBundle\Repository\StoreTrait;
  5. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  6. use Lc\SovBundle\Repository\Site\NewsStore as SovNewsStore;
  7. class NewsStore extends SovNewsStore
  8. {
  9. use StoreTrait;
  10. use SectionStoreTrait;
  11. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  12. {
  13. $this->addFilterBySectionOptionnal($query);
  14. return parent::filtersDefault($query);
  15. }
  16. }