|
- <?php
-
- namespace Lc\CaracoleBundle\Repository\File;
-
- use Knp\Component\Pager\PaginatorInterface;
- use Lc\CaracoleBundle\Model\Address\AddressInterface;
- use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait;
- use Lc\SovBundle\Repository\AbstractRepositoryQuery;
-
- class DocumentRepositoryQuery extends AbstractRepositoryQuery
- {
- use MerchantRepositoryQueryTrait;
-
- public function __construct(DocumentRepository $repository, PaginatorInterface $paginator)
- {
- parent::__construct($repository, 'r', $paginator);
- }
-
- public function filterByBuyerAddress(AddressInterface $buyerAddress)
- {
- return $this
- ->andWhere('.buyerAddress = :buyerAddress')
- ->setParameter('buyerAddress', $buyerAddress);
- }
- }
|