瀏覽代碼

ReductionCartRepositoryQuery : ajout filterByType()

develop
Guillaume Bourgeois 10 月之前
父節點
當前提交
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);
}
}

Loading…
取消
儲存