diff --git a/tools/sandbox/config.php b/tools/sandbox/config.php index 59eaa2db2f..bed1855ae3 100644 --- a/tools/sandbox/config.php +++ b/tools/sandbox/config.php @@ -3,7 +3,6 @@ declare(strict_types=1); use Doctrine\Common\Annotations\AnnotationRegistry; -use Doctrine\MongoDB\Connection; use Doctrine\ODM\MongoDB\Configuration; use Doctrine\ODM\MongoDB\DocumentManager; use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver; @@ -18,8 +17,6 @@ $loader->add('Documents', __DIR__); AnnotationRegistry::registerLoader([$loader, 'loadClass']); -$connection = new Connection(); - $config = new Configuration(); $config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyNamespace('Proxies'); @@ -30,4 +27,4 @@ // $config->setMetadataCacheImpl(new Doctrine\Common\Cache\ApcCache()); $config->setMetadataDriverImpl(AnnotationDriver::create(__DIR__ . '/Documents')); -$dm = DocumentManager::create($connection, $config); +$dm = DocumentManager::create(null, $config);