andWhere('.user = :user') ->setParameter('user', $user); } public function filterIsCreditActive() { return $this ->andWhere('.creditActive = 1'); } }