@@ 562-564 (lines=3) @@ | ||
559 | return; |
|
560 | } |
|
561 | ||
562 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
563 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
564 | } |
|
565 | ||
566 | $this->customRepositoryClassName = $repositoryClassName; |
|
567 | } |
|
@@ 1229-1231 (lines=3) @@ | ||
1226 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1227 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1228 | } |
|
1229 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1230 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1231 | } |
|
1232 | if (isset($mapping['collectionClass'])) { |
|
1233 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1234 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1233-1235 (lines=3) @@ | ||
1230 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1231 | } |
|
1232 | if (isset($mapping['collectionClass'])) { |
|
1233 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1234 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1235 | } |
|
1236 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1237 | } |
|
1238 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1247-1249 (lines=3) @@ | ||
1244 | ||
1245 | if (isset($mapping['discriminatorMap'])) { |
|
1246 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1247 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1248 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1249 | } |
|
1250 | } |
|
1251 | } |
|
1252 |