I m integrating doctrine with Zend Framework. I ve hit an error thrown from cli. It seems Zend_Application_Bootstrap_Bootstrap does not have a require_once for Zend_Application_Bootstrap_BootstrapAbstract. Has anyone hit this?
my cli-config.php
<?php
$classLoader = new DoctrineCommonClassLoader( App , __DIR__ . "/../application/models");
$classLoader->register();
$classLoader = new DoctrineCommonClassLoader( Cms , __DIR__ . "/../application/modules/cms-modules/models");
$classLoader->register();
$classLoader = new DoctrineCommonClassLoader( Proxies , __DIR__ . "/../application/models");
$classLoader->register();
$config = new DoctrineORMConfiguration();
$config->setMetadataCacheImpl(new DoctrineCommonCacheArrayCache);
$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 );
// Database connection information
$connectionOptions = array(
driver => pdo_mysql ,
dbname => bella ,
user => username ,
password => password ,
unix_socket => /Applications/MAMP/tmp/mysql/mysql.sock
);
$em = DoctrineORMEntityManager::create($connectionOptions, $config);
$helperSet = new SymfonyComponentConsoleHelperHelperSet( array(
db => new DoctrineDBALToolsConsoleHelperConnectionHelper($em->getConnection()),
em => new DoctrineORMToolsConsoleHelperEntityManagerHelper($em)
));