@@ 1100-1102 (lines=3) @@ | ||
1097 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1098 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1099 | } |
|
1100 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1101 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1102 | } |
|
1103 | if (isset($mapping['collectionClass'])) { |
|
1104 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1105 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1104-1106 (lines=3) @@ | ||
1101 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1102 | } |
|
1103 | if (isset($mapping['collectionClass'])) { |
|
1104 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1105 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1106 | } |
|
1107 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1108 | } |
|
1109 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1118-1120 (lines=3) @@ | ||
1115 | ||
1116 | if (isset($mapping['discriminatorMap'])) { |
|
1117 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1118 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1119 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1120 | } |
|
1121 | } |
|
1122 | } |
|
1123 |