@@ 1107-1109 (lines=3) @@ | ||
1104 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1105 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1106 | } |
|
1107 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1108 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1109 | } |
|
1110 | if (isset($mapping['collectionClass'])) { |
|
1111 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1112 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1111-1113 (lines=3) @@ | ||
1108 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1109 | } |
|
1110 | if (isset($mapping['collectionClass'])) { |
|
1111 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1112 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1113 | } |
|
1114 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1115 | } |
|
1116 | if ( ! empty($mapping['collectionClass'])) { |
|
@@ 1125-1127 (lines=3) @@ | ||
1122 | ||
1123 | if (isset($mapping['discriminatorMap'])) { |
|
1124 | foreach ($mapping['discriminatorMap'] as $key => $class) { |
|
1125 | if (strpos($class, '\\') === false && strlen($this->namespace)) { |
|
1126 | $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class; |
|
1127 | } |
|
1128 | } |
|
1129 | } |
|
1130 |