I think you are confusing ZF1 with ZF2...

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 6 February 2013 11:03, eokorie [via Zend Framework Community] <
ml-node+s634137n4659039...@n4.nabble.com> wrote:

> 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
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/Doctrine-2-ZF2-Service-tp4659035p4659039.html
>  To start a new topic under Zend Framework, email
> ml-node+s634137n634138...@n4.nabble.com
> To unsubscribe from Zend Framework Community, click 
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
> .
> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Doctrine-2-ZF2-Service-tp4659035p4659040.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to