I have a function in my bootstrap that initiates Doctrine: protected function initDoctrine(ServiceLocatorInterface $serviceManager) { /** @var $entityManager \Doctrine\ORM\EntityManager */ $entityManager = $serviceManager->get('doctrine.entitymanager.orm_default'); $entityManager->getEventManager()->addEventListener( array(DoctrineEvents::postLoad), new EntityManager\PostLoadSubscriber($serviceManager) ); }
in the onBootstrap function, I do a $this->initDoctrine to try and load it... Could this be a bad way of doing it? Thanks again -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Doctrine-2-ZF2-Service-tp4659035p4659039.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com