register(); $entitiesClassLoader = new ClassLoader('Entities', __DIR__); $entitiesClassLoader->register(); $proxiesClassLoader = new ClassLoader('Proxies', __DIR__); $proxiesClassLoader->register(); // Set up caches $config = new Configuration; $cache = new ApcCache; $config->setMetadataCacheImpl($cache); $config->setQueryCacheImpl($cache); // Proxy configuration $config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyNamespace('Proxies'); // Database connection information $connectionOptions = array( 'driver' => 'pdo_sqlite', 'path' => 'database.sqlite' ); // Create EntityManager $em = EntityManager::create($connectionOptions, $config); ## PUT YOUR TEST CODE BELOW $user = new User; $address = new Address; echo 'Hello World!' . PHP_EOL;