@@ 1174-1176 (lines=3) @@ | ||
1171 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1172 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1173 | } |
|
1174 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1175 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1176 | } |
|
1177 | if (isset($mapping['collectionClass'])) { |
|
1178 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1179 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1178-1180 (lines=3) @@ | ||
1175 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1176 | } |
|
1177 | if (isset($mapping['collectionClass'])) { |
|
1178 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1179 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1180 | } |
|
1181 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1182 | } |
|
1183 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1192-1194 (lines=3) @@ | ||
1189 | ||
1190 | if (isset($mapping['discriminatorMap'])) { |
|
1191 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1192 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1193 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1194 | } |
|
1195 | } |
|
1196 | } |
|
1197 |