@@ 1221-1223 (lines=3) @@ | ||
1218 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1219 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1220 | } |
|
1221 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1222 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1223 | } |
|
1224 | if (isset($mapping['collectionClass'])) { |
|
1225 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1226 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1225-1227 (lines=3) @@ | ||
1222 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1223 | } |
|
1224 | if (isset($mapping['collectionClass'])) { |
|
1225 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1226 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1227 | } |
|
1228 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1229 | } |
|
1230 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1239-1241 (lines=3) @@ | ||
1236 | ||
1237 | if (isset($mapping['discriminatorMap'])) { |
|
1238 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1239 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1240 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1241 | } |
|
1242 | } |
|
1243 | } |
|
1244 | ||
@@ 589-591 (lines=3) @@ | ||
586 | return; |
|
587 | } |
|
588 | ||
589 | if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) { |
|
590 | $repositoryClassName = $this->namespace . '\\' . $repositoryClassName; |
|
591 | } |
|
592 | ||
593 | $this->customRepositoryClassName = $repositoryClassName; |
|
594 | } |