1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Merge branch 'DDC-861'

This commit is contained in:
Benjamin Eberlei 2010-11-05 22:54:05 +01:00
commit a966cb6cc7

View File

@ -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;
} }