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 andIsOnline(){ }*/ }