您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
803B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Reminder;
  3. use Lc\CaracoleBundle\Repository\MerchantStoreTrait;
  4. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  5. use Lc\CaracoleBundle\Repository\StoreTrait;
  6. use Lc\SovBundle\Repository\Reminder\ReminderStore as SovReminderStore;
  7. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  8. class ReminderStore extends SovReminderStore
  9. {
  10. use StoreTrait;
  11. use SectionStoreTrait;
  12. use MerchantStoreTrait;
  13. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  14. {
  15. if ($this->merchant) {
  16. $query->filterByMerchant($this->merchant);
  17. }
  18. if ($this->section) {
  19. $query->filterBySection($this->section);
  20. }
  21. return parent::filtersDefault($query);
  22. }
  23. }