浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 10 个月前
父节点
当前提交
bc1c165afb
共有 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);
}
}

正在加载...
取消
保存