|
@@ 1166-1168 (lines=3) @@
|
| 1163 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1164 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1165 |
|
} |
| 1166 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1167 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1168 |
|
} |
| 1169 |
|
if (isset($mapping['collectionClass'])) { |
| 1170 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1171 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1170-1172 (lines=3) @@
|
| 1167 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1168 |
|
} |
| 1169 |
|
if (isset($mapping['collectionClass'])) { |
| 1170 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1171 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1172 |
|
} |
| 1173 |
|
$mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
| 1174 |
|
} |
| 1175 |
|
if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1184-1186 (lines=3) @@
|
| 1181 |
|
|
| 1182 |
|
if (isset($mapping['discriminatorMap'])) { |
| 1183 |
|
foreach ($mapping['discriminatorMap'] as $key => $class) { |
| 1184 |
|
if (strpos($class, '\\') === false && strlen($this->namespace)) { |
| 1185 |
|
$mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
| 1186 |
|
} |
| 1187 |
|
} |
| 1188 |
|
} |
| 1189 |
|
|