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

WorkshopRepositoryQuery.php 633B

1234567891011121314151617181920
  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. }