|
|
@@ -11,7 +11,6 @@ use Lc\SovBundle\Repository\RepositoryQueryInterface; |
|
|
|
|
|
|
|
class DocumentStore extends AbstractStore |
|
|
|
{ |
|
|
|
use SectionStoreTrait; |
|
|
|
use MerchantStoreTrait; |
|
|
|
|
|
|
|
protected DocumentRepositoryQuery $query; |
|
|
@@ -31,12 +30,9 @@ class DocumentStore extends AbstractStore |
|
|
|
{ |
|
|
|
$query->filterIsOnlineAndOffline(); |
|
|
|
|
|
|
|
if(isset($this->section) && $this->section) { |
|
|
|
$query->filterBySection($this->section); |
|
|
|
} |
|
|
|
|
|
|
|
if(isset($this->merchant) && $this->merchant) { |
|
|
|
$query->filterByMerchantViaSection($this->merchant); |
|
|
|
$query->filterByMerchant($this->merchant); |
|
|
|
} |
|
|
|
|
|
|
|
return $query; |