Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DocumentRepositoryQuery.php 830B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
1234567891011121314151617181920212223242526
  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\CaracoleBundle\Repository\SectionRepositoryQueryTrait;
  7. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  8. class DocumentRepositoryQuery extends AbstractRepositoryQuery
  9. {
  10. use SectionRepositoryQueryTrait;
  11. public function __construct(DocumentRepository $repository, PaginatorInterface $paginator)
  12. {
  13. parent::__construct($repository, 'r', $paginator);
  14. }
  15. public function filterByBuyerAddress(AddressInterface $buyerAddress)
  16. {
  17. return $this
  18. ->andWhere('.buyerAddress = :buyerAddress')
  19. ->setParameter('buyerAddress', $buyerAddress);
  20. }
  21. }