From 8d9564421cbb32ca62da1477e408aaf1d84f08f3 Mon Sep 17 00:00:00 2001 From: romanb Date: Wed, 13 May 2009 15:32:17 +0000 Subject: [PATCH] [2.0] Cleanups from last commit. --- lib/Doctrine/ORM/DynamicProxyGenerator.php | 1 - lib/Doctrine/ORM/EntityManager.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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()); } /**