|
@@ 403-411 (lines=9) @@
|
| 400 |
|
*/ |
| 401 |
|
private function addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass) |
| 402 |
|
{ |
| 403 |
|
foreach ($parentClass->fieldMappings as $mapping) { |
| 404 |
|
if ( ! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass) { |
| 405 |
|
$mapping['inherited'] = $parentClass->name; |
| 406 |
|
} |
| 407 |
|
if ( ! isset($mapping['declared'])) { |
| 408 |
|
$mapping['declared'] = $parentClass->name; |
| 409 |
|
} |
| 410 |
|
$subClass->addInheritedFieldMapping($mapping); |
| 411 |
|
} |
| 412 |
|
foreach ($parentClass->reflFields as $name => $field) { |
| 413 |
|
$subClass->reflFields[$name] = $field; |
| 414 |
|
} |
|
@@ 450-459 (lines=10) @@
|
| 447 |
|
|
| 448 |
|
private function addInheritedEmbeddedClasses(ClassMetadata $subClass, ClassMetadata $parentClass) |
| 449 |
|
{ |
| 450 |
|
foreach ($parentClass->embeddedClasses as $field => $embeddedClass) { |
| 451 |
|
if ( ! isset($embeddedClass['inherited']) && ! $parentClass->isMappedSuperclass) { |
| 452 |
|
$embeddedClass['inherited'] = $parentClass->name; |
| 453 |
|
} |
| 454 |
|
if ( ! isset($embeddedClass['declared'])) { |
| 455 |
|
$embeddedClass['declared'] = $parentClass->name; |
| 456 |
|
} |
| 457 |
|
|
| 458 |
|
$subClass->embeddedClasses[$field] = $embeddedClass; |
| 459 |
|
} |
| 460 |
|
} |
| 461 |
|
|
| 462 |
|
/** |