@@ 571-573 (lines=3) @@ | ||
568 | return; |
|
569 | } |
|
570 | ||
571 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
572 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
573 | } |
|
574 | ||
575 | $this->customRepositoryClassName = $repositoryClassName; |
|
576 | } |
|
@@ 1244-1246 (lines=3) @@ | ||
1241 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1242 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1243 | } |
|
1244 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1245 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1246 | } |
|
1247 | if (isset($mapping['collectionClass'])) { |
|
1248 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1249 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1248-1250 (lines=3) @@ | ||
1245 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1246 | } |
|
1247 | if (isset($mapping['collectionClass'])) { |
|
1248 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1249 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1250 | } |
|
1251 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1252 | } |
|
1253 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1262-1264 (lines=3) @@ | ||
1259 | ||
1260 | if (isset($mapping['discriminatorMap'])) { |
|
1261 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1262 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1263 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1264 | } |
|
1265 | } |
|
1266 | } |
|
1267 |