|
@@ 606-608 (lines=3) @@
|
| 603 |
|
return; |
| 604 |
|
} |
| 605 |
|
|
| 606 |
|
if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
| 607 |
|
$repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
| 608 |
|
} |
| 609 |
|
|
| 610 |
|
$this->customRepositoryClassName = $repositoryClassName; |
| 611 |
|
} |
|
@@ 1238-1240 (lines=3) @@
|
| 1235 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1236 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1237 |
|
} |
| 1238 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1239 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1240 |
|
} |
| 1241 |
|
if (isset($mapping['collectionClass'])) { |
| 1242 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1243 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1242-1244 (lines=3) @@
|
| 1239 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1240 |
|
} |
| 1241 |
|
if (isset($mapping['collectionClass'])) { |
| 1242 |
|
if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1243 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1244 |
|
} |
| 1245 |
|
$mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
| 1246 |
|
} |
| 1247 |
|
if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1256-1258 (lines=3) @@
|
| 1253 |
|
|
| 1254 |
|
if (isset($mapping['discriminatorMap'])) { |
| 1255 |
|
foreach ($mapping['discriminatorMap'] as $key => $class) { |
| 1256 |
|
if (strpos($class, '\\') === false && strlen($this->namespace)) { |
| 1257 |
|
$mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
| 1258 |
|
} |
| 1259 |
|
} |
| 1260 |
|
} |
| 1261 |
|
|