andWhere($dqlId.'.parent = :entityId'); $this->setParameter('entityId', $entityId); return $this; } public function andWhereParentIsNull($dqlId):self { $this->andWhere($dqlId.'.parent IS NULL'); return $this; } public function andWhereStatus($dqlId, $status){ $this->andWhere($dqlId.'.status = :status'); $this->setParameter('status', $status); return $this; } }