I integrate the doctrine with the Zend Framework. I hit an error reset from cli. It seems that Zend_Application_Bootstrap_Bootstrap does not have require_once for Zend_Application_Bootstrap_BootstrapAbstract. Has anyone hit this?
my cli-config.php
<?php $classLoader = new \Doctrine\Common\ClassLoader('App', __DIR__ . "/../application/models"); $classLoader->register(); $classLoader = new \Doctrine\Common\ClassLoader('Cms', __DIR__ . "/../application/modules/cms-modules/models"); $classLoader->register(); $classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__ . "/../application/models"); $classLoader->register(); $config = new \Doctrine\ORM\Configuration(); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache); $driverImpl = $config->newDefaultAnnotationDriver(array( __DIR__."/../application/models/App", __DIR__."/../application/modules/cms-modules/models/Cms" )); $config->setMetadataDriverImpl($driverImpl); $config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyNamespace('Proxies');
source share