|
@@ 41-44 (lines=4) @@
|
| 38 |
|
$metadata->setAbstract(true); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
if (isset($mapping['entity']['polymorphic'])) { |
| 42 |
|
$metadata->setPolymorphic(true); |
| 43 |
|
$metadata->ownedTypes = $this->getOwnedTypes($metadata->type); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
if (isset($mapping['entity']['extends'])) { |
| 47 |
|
$metadata->extends = $mapping['entity']['extends']; |
|
@@ 366-369 (lines=4) @@
|
| 363 |
|
$path = $this->getFilePath('model', $mapping['entity']); |
| 364 |
|
$relatedEntityMapping = $this->getMapping('model', $mapping['entity'], $path); |
| 365 |
|
|
| 366 |
|
if (isset($relatedEntityMapping['entity']['polymorphic'])) { |
| 367 |
|
$relationship->setPolymorphic(true); |
| 368 |
|
$relationship->ownedTypes = $this->getOwnedTypes($mapping['entity']); |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
if (isset($mapping['search']['store'])) { |
| 372 |
|
$relationship->setSearchProperty(true); |