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