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.
|
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Reminder;
-
- use Lc\CaracoleBundle\Repository\MerchantStoreTrait;
- use Lc\CaracoleBundle\Repository\SectionStoreTrait;
- use Lc\SovBundle\Model\User\UserInterface;
- use Lc\SovBundle\Repository\Reminder\ReminderStore as SovReminderStore;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
-
- class ReminderStore extends SovReminderStore
- {
- use SectionStoreTrait;
- use MerchantStoreTrait;
-
- public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- if ($this->merchant) {
- $query->filterByMerchant($this->merchant);
- }
-
- if ($this->section) {
- $query->filterBySection($this->section);
- }
-
- return parent::filtersDefault($query);
- }
- }
|