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

22 行
570B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Merchant;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  5. class MerchantRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. public function __construct(MerchantRepository $repository, PaginatorInterface $paginator)
  8. {
  9. parent::__construct($repository, 'r', $paginator);
  10. }
  11. public function filterByDevAlias(string $devAlias)
  12. {
  13. return $this->andWhere('.devAlias LIKE :devAlias')
  14. ->setParameter('devAlias', $devAlias);
  15. }
  16. }