您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
769B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\File;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\CaracoleBundle\Model\Address\AddressInterface;
  5. use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait;
  6. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  7. class DocumentRepositoryQuery extends AbstractRepositoryQuery
  8. {
  9. use MerchantRepositoryQueryTrait;
  10. public function __construct(DocumentRepository $repository, PaginatorInterface $paginator)
  11. {
  12. parent::__construct($repository, 'r', $paginator);
  13. }
  14. public function filterByBuyerAddress(AddressInterface $buyerAddress)
  15. {
  16. return $this
  17. ->andWhere('.buyerAddress = :buyerAddress')
  18. ->setParameter('buyerAddress', $buyerAddress);
  19. }
  20. }