@@ 1214-1216 (lines=3) @@ | ||
1211 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1212 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1213 | } |
|
1214 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1215 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1216 | } |
|
1217 | if (isset($mapping['collectionClass'])) { |
|
1218 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1219 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1218-1220 (lines=3) @@ | ||
1215 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1216 | } |
|
1217 | if (isset($mapping['collectionClass'])) { |
|
1218 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1219 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1220 | } |
|
1221 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1222 | } |
|
1223 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1232-1234 (lines=3) @@ | ||
1229 | ||
1230 | if (isset($mapping['discriminatorMap'])) { |
|
1231 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1232 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1233 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1234 | } |
|
1235 | } |
|
1236 | } |
|
1237 |