/** * @return ForestCollection[] */ protected function getCollectionsFromAnalyzer() { //$this->orm can currently only be the Doctrine service $em = $this->getOrm()->getEntityManager(); $analyzer = new DoctrineAnalyzer(); $analyzer->setEntityManager($em); return $analyzer->analyze(); }