diff --git a/lib/Doctrine/ORM/DynamicProxyGenerator.php b/lib/Doctrine/ORM/DynamicProxyGenerator.php index 126b98167..66e369654 100644 --- a/lib/Doctrine/ORM/DynamicProxyGenerator.php +++ b/lib/Doctrine/ORM/DynamicProxyGenerator.php @@ -73,7 +73,6 @@ class DynamicProxyGenerator { $proxyClassName = str_replace('\\', '_', $assoc->getTargetEntityName()) . 'AProxy'; if ( ! class_exists($proxyClassName, false)) { - //die("$proxyClassName!"); $this->_em->getMetadataFactory()->setMetadataFor(self::$_ns . $proxyClassName, $this->_em->getClassMetadata($assoc->getTargetEntityName())); $fileName = $this->_cacheDir . $proxyClassName . '.g.php'; if ( ! file_exists($fileName)) { diff --git a/lib/Doctrine/ORM/EntityManager.php b/lib/Doctrine/ORM/EntityManager.php index 4b585ce6e..2479aa2dc 100644 --- a/lib/Doctrine/ORM/EntityManager.php +++ b/lib/Doctrine/ORM/EntityManager.php @@ -146,7 +146,7 @@ class EntityManager $this->_conn->getDatabasePlatform()); $this->_metadataFactory->setCacheDriver($this->_config->getMetadataCacheImpl()); $this->_unitOfWork = new UnitOfWork($this); - $this->_proxyGenerator = new DynamicProxyGenerator($this, '/Users/robo/dev/php/tmp/gen/'); + $this->_proxyGenerator = new DynamicProxyGenerator($this, $this->_config->getCacheDir()); } /**