@@ 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']); |
|
@@ 405-407 (lines=3) @@ | ||
402 | } |
|
403 | $this->setRootDefault('entity', $mapping); |
|
404 | ||
405 | if (!isset($mapping['entity']['persistence']) || !is_array($mapping['entity']['persistence'])) { |
|
406 | $mapping['entity']['persistence'] = []; |
|
407 | } |
|
408 | ||
409 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
410 | $mapping['entity']['search'] = []; |
|
@@ 409-411 (lines=3) @@ | ||
406 | $mapping['entity']['persistence'] = []; |
|
407 | } |
|
408 | ||
409 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
410 | $mapping['entity']['search'] = []; |
|
411 | } |
|
412 | return $mapping; |
|
413 | } |
|
414 |