24 rindas
727B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\PointSale;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  5. use Lc\CaracoleBundle\Repository\SectionRepositoryQueryTrait;
  6. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  7. class PointSaleSectionRepositoryQuery extends AbstractRepositoryQuery
  8. {
  9. use SectionRepositoryQueryTrait;
  10. public function __construct(PointSaleSectionRepository $repository, PaginatorInterface $paginator)
  11. {
  12. parent::__construct($repository, 'pointSaleSection', $paginator);
  13. }
  14. public function filterByPointSale(PointSaleInterface $pointSale): self
  15. {
  16. return $this->andWhereEqual('pointSale', $pointSale);
  17. }
  18. }