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.
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.