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\SovBundle\Repository\Reminder\ReminderStore as SovReminderStore;
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
-
- class TicketStore extends SovReminderStore
- {
- protected MerchantInterface $merchant;
-
- public function setMerchant(MerchantInterface $merchant)
- {
- $this->merchant = $merchant;
- }
-
- public function getFoo($query = null)
- {
- $query = $this->query->create();
-
- if ($this->merchant) {
- $query->filterByMerchant($this->merchant);
- }
-
- return parent::getFoo($query);
- }
- }
|