@@ 625-627 (lines=3) @@ | ||
622 | return; |
|
623 | } |
|
624 | ||
625 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
626 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
627 | } |
|
628 | ||
629 | $this->customRepositoryClassName = $repositoryClassName; |
|
630 | } |
|
@@ 1326-1328 (lines=3) @@ | ||
1323 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1324 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1325 | } |
|
1326 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1327 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1328 | } |
|
1329 | if (isset($mapping['collectionClass'])) { |
|
1330 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1331 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1330-1332 (lines=3) @@ | ||
1327 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1328 | } |
|
1329 | if (isset($mapping['collectionClass'])) { |
|
1330 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1331 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1332 | } |
|
1333 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1334 | } |
|
1335 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1344-1346 (lines=3) @@ | ||
1341 | ||
1342 | if (isset($mapping['discriminatorMap'])) { |
|
1343 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1344 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1345 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1346 | } |
|
1347 | } |
|
1348 | } |
|
1349 |