@@ 614-616 (lines=3) @@ | ||
611 | return; |
|
612 | } |
|
613 | ||
614 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
615 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
616 | } |
|
617 | ||
618 | $this->customRepositoryClassName = $repositoryClassName; |
|
619 | } |
|
@@ 1293-1295 (lines=3) @@ | ||
1290 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1291 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1292 | } |
|
1293 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1294 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1295 | } |
|
1296 | if (isset($mapping['collectionClass'])) { |
|
1297 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1298 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1297-1299 (lines=3) @@ | ||
1294 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1295 | } |
|
1296 | if (isset($mapping['collectionClass'])) { |
|
1297 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1298 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1299 | } |
|
1300 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1301 | } |
|
1302 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1311-1313 (lines=3) @@ | ||
1308 | ||
1309 | if (isset($mapping['discriminatorMap'])) { |
|
1310 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1311 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1312 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1313 | } |
|
1314 | } |
|
1315 | } |
|
1316 |