@@ -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); | |||
} | |||
} |