1
0
mirror of synced 2025-01-06 00:57:10 +03:00

identifier referencing foreign entity can be defined in parent class too

This commit is contained in:
lenar 2011-08-31 10:28:02 +03:00 committed by Benjamin Eberlei
parent 7f5844c209
commit cab154b873

View File

@ -309,6 +309,10 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
$class->setPrimaryTable($parent->table);
}
if ($parent && $parent->containsForeignIdentifier) {
$class->containsForeignIdentifier = true;
}
$class->setParentClasses($visited);
if ($this->evm->hasListeners(Events::loadClassMetadata)) {