andWhere(':user MEMBER OF .users') ->setParameter('user', $user); } public function filterByType(string $type = ReductionCreditModel::TYPE_CREDIT) { return $this ->andWhere('.type = :type') ->setParameter('type', $type); } }