I am trying to configure Zend 2 + doctrine 2 on azure websites. We do not have access to the command line on the windows azure websites so we cannot perform php composer.phar update to fix the doctrine modules so that zend can load them. I am getting the following error message
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for doctrine.entitymanager.orm_default
On my local machine I have loaded the modules in application.config.php file as
'modules' => array(
'Rest',
'Front',
'DoctrineModule',
'DoctrineORMModule'
),
but on azure, it is not able to load DoctrineModule and DoctrineORMModule.
Then I decided to remove the doctrine modules to load like this. and I am trying to load them as
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
'Doctrine\Common' => __DIR__ . '/../../library/vendor/doctrine/common',
'Doctrine\DBAL' => __DIR__ . '/../../library/vendor/doctrine/dbal',
'Symfony\Console' => __DIR__ . '/../../library/vendor/symfony/console',
'DoctrineModule' => __DIR__ . '/../../library/vendor/doctrine/doctrine-module',
'DoctrineORMModule' => __DIR__ . '/../../library/vendor/doctrine/doctrine-orm-module',
),
),
);
}
in Module.php, but now it is not able to get doctrine.entitymanager.orm_default using ServiceManager (as indicated above). What should I do ? How should I manually load everything for doctrine modules in zend application. Please suggest.