public function getCollectionManager() { $manager = $this->collectionManager; $manager->setEntityManager($this); return $manager; }