瀏覽代碼

Merge branch 'develop'

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

Loading…
取消
儲存