You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
633B

  1. <?php
  2. namespace Lc\PietroBundle\Repository\Workshop;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\PietroBundle\Model\Workshop\WorkshopThematicInterface;
  5. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  6. class WorkshopRepositoryQuery extends AbstractRepositoryQuery
  7. {
  8. public function __construct(WorkshopRepository $repository, PaginatorInterface $paginator)
  9. {
  10. parent::__construct($repository, 'workshop', $paginator);
  11. }
  12. public function filterByWorkshopThematic(WorkshopThematicInterface $workshopThematic)
  13. {
  14. return $this->andWhereEqual('workshopThematic', $workshopThematic);
  15. }
  16. }