浏览代码

ReductionCartRepositoryQuery : ajout filterByType()

develop
Guillaume Bourgeois 11 个月前
父节点
当前提交
43616b52a4
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      Repository/Reduction/ReductionCartRepositoryQuery.php

+ 7
- 0
Repository/Reduction/ReductionCartRepositoryQuery.php 查看文件

@@ -29,4 +29,11 @@ class ReductionCartRepositoryQuery extends AbstractRepositoryQuery
->andWhere(':user MEMBER OF .users')
->setParameter('user', $user);
}

public function filterByType(string $type, string $operator = '=')
{
return $this
->andWhere('.type '.$operator.' :type')
->setParameter('type', $type);
}
}

正在加载...
取消
保存