@@ 40-43 (lines=4) @@ | ||
37 | $metadata->setAbstract(true); |
|
38 | } |
|
39 | ||
40 | if (isset($mapping['entity']['polymorphic'])) { |
|
41 | $metadata->setPolymorphic(true); |
|
42 | $metadata->ownedTypes = $this->getOwnedTypes($metadata->type); |
|
43 | } |
|
44 | ||
45 | if (isset($mapping['entity']['extends'])) { |
|
46 | $metadata->extends = $mapping['entity']['extends']; |
|
@@ 292-295 (lines=4) @@ | ||
289 | $path = $this->getFilePath('model', $mapping['entity']); |
|
290 | $relatedEntityMapping = $this->getMapping('model', $mapping['entity'], $path); |
|
291 | ||
292 | if (isset($relatedEntityMapping['entity']['polymorphic'])) { |
|
293 | $relationship->setPolymorphic(true); |
|
294 | $relationship->ownedTypes = $this->getOwnedTypes($mapping['entity']); |
|
295 | } |
|
296 | ||
297 | if (isset($mapping['search']['store'])) { |
|
298 | $relationship->setSearchProperty(true); |