1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Cleanups from last commit.

This commit is contained in:
romanb 2009-05-13 15:32:17 +00:00
parent 33dbf8368b
commit 8d9564421c
2 changed files with 1 additions and 2 deletions

View File

@ -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)) {

View File

@ -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());
}
/**