|
12345678910111213141516171819202122232425262728 |
- <?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);
- }
- }
|