ZF2 how to get entity Manager from outside of controller

Viewed 9670

we can access entity manager within controller using $this->getServiceLocator()->get('doctrine.entitymanager.orm_default');

but how can we access entity manager singleton instance in rest of the project in Zendframework 2.

1 Answers
Related