I am using zf-boilerplate for my zend framework project. I am using the Gedmo extensions and need to get an instance of the doctrine event manager in the bootstrap.
ie. I would like to be able to do the following:
$evm = $this->getDoctrine()->getEventManager()
How can I do this?
You can access the entity manager by calling
If you're in the middle of bootsrap, then make sure you bootstrap entity manager before accessing it.
i.e. execute the code below first
UPDATE
Didn't notice the question was about EventManager. Use the code below in order to get access to it
Zend_Registry::get('doctrine')->getEventManager ();