andWhere('.year = :year') ->setParameter('year', $year); } public function filterByCycleNumber(int $cycleNumber): self { return $this ->andWhere('.cycleNumber = :cycleNumber') ->setParameter('cycleNumber', $cycleNumber); } }