|
@@ 1181-1183 (lines=3) @@
|
| 1178 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1179 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1180 |
|
} |
| 1181 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1182 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1183 |
|
} |
| 1184 |
|
if (isset($mapping['collectionClass'])) { |
| 1185 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1186 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1185-1187 (lines=3) @@
|
| 1182 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1183 |
|
} |
| 1184 |
|
if (isset($mapping['collectionClass'])) { |
| 1185 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1186 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1187 |
|
} |
| 1188 |
|
$mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
| 1189 |
|
} |
| 1190 |
|
if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1199-1201 (lines=3) @@
|
| 1196 |
|
|
| 1197 |
|
if (isset($mapping['discriminatorMap'])) { |
| 1198 |
|
foreach ($mapping['discriminatorMap'] as $key => $class) { |
| 1199 |
|
if (strpos($class, '\\') === false && strlen($this->namespace)) { |
| 1200 |
|
$mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
| 1201 |
|
} |
| 1202 |
|
} |
| 1203 |
|
} |
| 1204 |
|
|