DDC-700 - Skip generation of proxy classes for Mapped superclasses
This commit is contained in:
parent
f2715c9af4
commit
eaa78b981b
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ class ProxyFactory
|
||||||
$proxyDir = $toDir ?: $this->_proxyDir;
|
$proxyDir = $toDir ?: $this->_proxyDir;
|
||||||
$proxyDir = rtrim($proxyDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
$proxyDir = rtrim($proxyDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||||
foreach ($classes as $class) {
|
foreach ($classes as $class) {
|
||||||
|
/* @var $class ClassMetadata */
|
||||||
|
if ($class->isMappedSuperclass) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$proxyClassName = str_replace('\\', '', $class->name) . 'Proxy';
|
$proxyClassName = str_replace('\\', '', $class->name) . 'Proxy';
|
||||||
$proxyFileName = $proxyDir . $proxyClassName . '.php';
|
$proxyFileName = $proxyDir . $proxyClassName . '.php';
|
||||||
$this->_generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate);
|
$this->_generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate);
|
||||||
|
|
Loading…
Add table
Reference in a new issue