andWhere('.productFamily = :productFamily') ->setParameter(':productFamily', $productFamily); } public function filterStatus(bool $status) { return $this ->andWhere('.status = :status') ->setParameter(':status', $status); } }