@@ 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 | } |
|
@@ 1287-1289 (lines=3) @@ | ||
1284 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1285 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1286 | } |
|
1287 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1288 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1289 | } |
|
1290 | if (isset($mapping['collectionClass'])) { |
|
1291 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1292 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1291-1293 (lines=3) @@ | ||
1288 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1289 | } |
|
1290 | if (isset($mapping['collectionClass'])) { |
|
1291 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1292 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1293 | } |
|
1294 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1295 | } |
|
1296 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1305-1307 (lines=3) @@ | ||
1302 | ||
1303 | if (isset($mapping['discriminatorMap'])) { |
|
1304 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1305 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1306 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1307 | } |
|
1308 | } |
|
1309 | } |
|
1310 |