/** * @param int id * @return EntityFinder */ public function whereId($id) { $this->qb->andWhere("{$this->alias}.id = :id"); $this->qb->setParameter("id", $id); return $this; }