1
0
mirror of synced 2024-12-13 14:56:01 +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

@ -308,6 +308,10 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
if ($parent && $parent->isInheritanceTypeSingleTable()) {
$class->setPrimaryTable($parent->table);
}
if ($parent && $parent->containsForeignIdentifier) {
$class->containsForeignIdentifier = true;
}
$class->setParentClasses($visited);