[2.0] Cleanups from last commit.
This commit is contained in:
parent
33dbf8368b
commit
8d9564421c
@ -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)) {
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user