public function indexAction()
{
$em = $this->getServiceLocator()
->get('doctrine.entitymanager.orm_shop');
var_dump($em);
var_dump($em->getConfiguration());
return new ViewModel();
}
Выдает эксепшен:
File:
myproj/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:909
Message:
An exception was raised while creating "doctrine.entitymanager.orm_shop"; no instance returned
Из файла myproj/module/Shop/config/module.config.php:
'service_manager' => array(
'factories' => array(
...
'doctrine.entitymanager.orm_shop' => new DoctrineORMModule\Service\EntityManagerFactory('orm_shop'),