/** * @return bool */ public function render() { $rootNode = $this->queryContainer->queryRootNode()->findOne(); if ($rootNode) { $this->renderChildren($rootNode); return $this->graph->render('svg'); } return false; }
/** * @return \Orm\Zed\Category\Persistence\SpyCategoryNode[]|\Propel\Runtime\Collection\ObjectCollection */ public function getRootNodes() { return $this->queryContainer->queryRootNode()->find(); }