1
0
mirror of synced 2025-01-18 22:41:43 +03:00

DDC-700 - Skip generation of proxy classes for Mapped superclasses

This commit is contained in:
Benjamin Eberlei 2010-08-08 12:05:21 +02:00
parent f2715c9af4
commit eaa78b981b

View File

@ -105,6 +105,11 @@ class ProxyFactory
$proxyDir = $toDir ?: $this->_proxyDir;
$proxyDir = rtrim($proxyDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
foreach ($classes as $class) {
/* @var $class ClassMetadata */
if ($class->isMappedSuperclass) {
continue;
}
$proxyClassName = str_replace('\\', '', $class->name) . 'Proxy';
$proxyFileName = $proxyDir . $proxyClassName . '.php';
$this->_generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate);