@@ 50-52 (lines=3) @@ | ||
47 | $metadata->extends = $mapping['entity']['extends']; |
|
48 | } |
|
49 | ||
50 | if (isset($mapping['entity']['defaultValues']) && is_array($mapping['entity']['defaultValues'])) { |
|
51 | $metadata->defaultValues = $mapping['entity']['defaultValues']; |
|
52 | } |
|
53 | ||
54 | $this->setPersistence($metadata, $mapping['entity']['persistence']); |
|
55 | $this->setSearch($metadata, $mapping['entity']['search']); |
|
@@ 399-401 (lines=3) @@ | ||
396 | } |
|
397 | $this->setRootDefault('entity', $mapping); |
|
398 | ||
399 | if (!isset($mapping['entity']['persistence']) || !is_array($mapping['entity']['persistence'])) { |
|
400 | $mapping['entity']['persistence'] = []; |
|
401 | } |
|
402 | ||
403 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
404 | $mapping['entity']['search'] = []; |
|
@@ 403-405 (lines=3) @@ | ||
400 | $mapping['entity']['persistence'] = []; |
|
401 | } |
|
402 | ||
403 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
404 | $mapping['entity']['search'] = []; |
|
405 | } |
|
406 | return $mapping; |
|
407 | } |
|
408 |