identifier referencing foreign entity can be defined in parent class too
This commit is contained in:
parent
7f5844c209
commit
cab154b873
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue