Browse Source

Correctif mineur

packProduct
Fabien Normand 3 years ago
parent
commit
2e931182e2
2 changed files with 2 additions and 6 deletions
  1. +1
    -1
      Repository/File/DocumentRepositoryQuery.php
  2. +1
    -5
      Repository/File/DocumentStore.php

+ 1
- 1
Repository/File/DocumentRepositoryQuery.php View File



class DocumentRepositoryQuery extends AbstractRepositoryQuery class DocumentRepositoryQuery extends AbstractRepositoryQuery
{ {
use SectionRepositoryQueryTrait;
use MerchantRepositoryQueryTrait;


public function __construct(DocumentRepository $repository, PaginatorInterface $paginator) public function __construct(DocumentRepository $repository, PaginatorInterface $paginator)
{ {

+ 1
- 5
Repository/File/DocumentStore.php View File



class DocumentStore extends AbstractStore class DocumentStore extends AbstractStore
{ {
use SectionStoreTrait;
use MerchantStoreTrait; use MerchantStoreTrait;


protected DocumentRepositoryQuery $query; protected DocumentRepositoryQuery $query;
{ {
$query->filterIsOnlineAndOffline(); $query->filterIsOnlineAndOffline();


if(isset($this->section) && $this->section) {
$query->filterBySection($this->section);
}


if(isset($this->merchant) && $this->merchant) { if(isset($this->merchant) && $this->merchant) {
$query->filterByMerchantViaSection($this->merchant);
$query->filterByMerchant($this->merchant);
} }


return $query; return $query;

Loading…
Cancel
Save