@@ 575-577 (lines=3) @@ | ||
572 | return; |
|
573 | } |
|
574 | ||
575 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
576 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
577 | } |
|
578 | ||
579 | $this->customRepositoryClassName = $repositoryClassName; |
|
580 | } |
|
@@ 1260-1262 (lines=3) @@ | ||
1257 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1258 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1259 | } |
|
1260 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1261 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1262 | } |
|
1263 | if (isset($mapping['collectionClass'])) { |
|
1264 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1265 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1264-1266 (lines=3) @@ | ||
1261 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1262 | } |
|
1263 | if (isset($mapping['collectionClass'])) { |
|
1264 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1265 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1266 | } |
|
1267 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1268 | } |
|
1269 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1278-1280 (lines=3) @@ | ||
1275 | ||
1276 | if (isset($mapping['discriminatorMap'])) { |
|
1277 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1278 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1279 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1280 | } |
|
1281 | } |
|
1282 | } |
|
1283 |