@@ 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']); |
|
@@ 418-420 (lines=3) @@ | ||
415 | } |
|
416 | $this->setRootDefault('entity', $mapping); |
|
417 | ||
418 | if (!isset($mapping['entity']['persistence']) || !is_array($mapping['entity']['persistence'])) { |
|
419 | $mapping['entity']['persistence'] = []; |
|
420 | } |
|
421 | ||
422 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
423 | $mapping['entity']['search'] = []; |
|
@@ 422-424 (lines=3) @@ | ||
419 | $mapping['entity']['persistence'] = []; |
|
420 | } |
|
421 | ||
422 | if (!isset($mapping['entity']['search']) || !is_array($mapping['entity']['search'])) { |
|
423 | $mapping['entity']['search'] = []; |
|
424 | } |
|
425 | return $mapping; |
|
426 | } |
|
427 |