@@ 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']); |
|
@@ 425-427 (lines=3) @@ | ||
422 | } |
|
423 | $this->setRootDefault('entity', $mapping); |
|
424 | ||
425 | if (!isset($mapping['entity']['persistence']) || !is_array($mapping['entity']['persistence'])) { |
|
426 | $mapping['entity']['persistence'] = []; |
|
427 | } |
|
428 | ||
429 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
430 | $mapping['entity']['search'] = []; |
|
@@ 429-431 (lines=3) @@ | ||
426 | $mapping['entity']['persistence'] = []; |
|
427 | } |
|
428 | ||
429 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
430 | $mapping['entity']['search'] = []; |
|
431 | } |
|
432 | return $mapping; |
|
433 | } |
|
434 |