Merge branch 'DDC-861'
This commit is contained in:
commit
a966cb6cc7
@ -77,9 +77,11 @@ class ProxyFactory
|
|||||||
$proxyClassName = str_replace('\\', '', $className) . 'Proxy';
|
$proxyClassName = str_replace('\\', '', $className) . 'Proxy';
|
||||||
$fqn = $this->_proxyNamespace . '\\' . $proxyClassName;
|
$fqn = $this->_proxyNamespace . '\\' . $proxyClassName;
|
||||||
|
|
||||||
if ($this->_autoGenerate && ! class_exists($fqn, false)) {
|
if (! class_exists($fqn, false)) {
|
||||||
$fileName = $this->_proxyDir . DIRECTORY_SEPARATOR . $proxyClassName . '.php';
|
$fileName = $this->_proxyDir . DIRECTORY_SEPARATOR . $proxyClassName . '.php';
|
||||||
|
if ($this->_autoGenerate) {
|
||||||
$this->_generateProxyClass($this->_em->getClassMetadata($className), $proxyClassName, $fileName, self::$_proxyClassTemplate);
|
$this->_generateProxyClass($this->_em->getClassMetadata($className), $proxyClassName, $fileName, self::$_proxyClassTemplate);
|
||||||
|
}
|
||||||
require $fileName;
|
require $fileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user