option where you can specify the configuration # file to use for a particular task. If this option is not given, the CLI looks for a file # named "cli-config.php" (this one) in the same directory and uses that by default. # require_once __DIR__ . '/../../lib/Doctrine/Common/IsolatedClassLoader.php'; $classLoader = new \Doctrine\Common\IsolatedClassLoader('Entities'); $classLoader->setBasePath(__DIR__); $classLoader->register(); $classLoader = new \Doctrine\Common\IsolatedClassLoader('Proxies'); $classLoader->setBasePath(__DIR__); $classLoader->register(); $config = new \Doctrine\ORM\Configuration(); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache); $config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyNamespace('Proxies'); $connectionOptions = array( 'driver' => 'pdo_sqlite', 'path' => 'database.sqlite' ); // These are required named variables (names can't change!) $em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config); $globalArguments = array( 'class-dir' => './Entities' );