|
@@ 588-590 (lines=3) @@
|
| 585 |
|
return; |
| 586 |
|
} |
| 587 |
|
|
| 588 |
|
if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
| 589 |
|
$repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
| 590 |
|
} |
| 591 |
|
|
| 592 |
|
$this->customRepositoryClassName = $repositoryClassName; |
| 593 |
|
} |
|
@@ 1261-1263 (lines=3) @@
|
| 1258 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1259 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1260 |
|
} |
| 1261 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1262 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1263 |
|
} |
| 1264 |
|
if (isset($mapping['collectionClass'])) { |
| 1265 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1266 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1265-1267 (lines=3) @@
|
| 1262 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1263 |
|
} |
| 1264 |
|
if (isset($mapping['collectionClass'])) { |
| 1265 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1266 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1267 |
|
} |
| 1268 |
|
$mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
| 1269 |
|
} |
| 1270 |
|
if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1279-1281 (lines=3) @@
|
| 1276 |
|
|
| 1277 |
|
if (isset($mapping['discriminatorMap'])) { |
| 1278 |
|
foreach ($mapping['discriminatorMap'] as $key => $class) { |
| 1279 |
|
if (strpos($class, '\\') === false && strlen($this->namespace)) { |
| 1280 |
|
$mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
| 1281 |
|
} |
| 1282 |
|
} |
| 1283 |
|
} |
| 1284 |
|
|