|
@@ 582-584 (lines=3) @@
|
| 579 |
|
return; |
| 580 |
|
} |
| 581 |
|
|
| 582 |
|
if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
| 583 |
|
$repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
| 584 |
|
} |
| 585 |
|
|
| 586 |
|
$this->customRepositoryClassName = $repositoryClassName; |
| 587 |
|
} |
|
@@ 1185-1187 (lines=3) @@
|
| 1182 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1183 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1184 |
|
} |
| 1185 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1186 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1187 |
|
} |
| 1188 |
|
if (isset($mapping['collectionClass'])) { |
| 1189 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1190 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1189-1191 (lines=3) @@
|
| 1186 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1187 |
|
} |
| 1188 |
|
if (isset($mapping['collectionClass'])) { |
| 1189 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1190 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1191 |
|
} |
| 1192 |
|
$mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
| 1193 |
|
} |
| 1194 |
|
if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1203-1205 (lines=3) @@
|
| 1200 |
|
|
| 1201 |
|
if (isset($mapping['discriminatorMap'])) { |
| 1202 |
|
foreach ($mapping['discriminatorMap'] as $key => $class) { |
| 1203 |
|
if (strpos($class, '\\') === false && strlen($this->namespace)) { |
| 1204 |
|
$mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
| 1205 |
|
} |
| 1206 |
|
} |
| 1207 |
|
} |
| 1208 |
|
|