@@ 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']; |
|
@@ 359-362 (lines=4) @@ | ||
356 | $path = $this->getFilePath('model', $mapping['entity']); |
|
357 | $relatedEntityMapping = $this->getMapping('model', $mapping['entity'], $path); |
|
358 | ||
359 | if (isset($relatedEntityMapping['entity']['polymorphic'])) { |
|
360 | $relationship->setPolymorphic(true); |
|
361 | $relationship->ownedTypes = $this->getOwnedTypes($mapping['entity']); |
|
362 | } |
|
363 | ||
364 | if (isset($mapping['search']['store'])) { |
|
365 | $relationship->setSearchProperty(true); |