@@ 1902-1904 (lines=3) @@ | ||
1899 | if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
|
1900 | throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
|
1901 | } |
|
1902 | if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
|
1903 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1904 | } |
|
1905 | if (isset($mapping['collectionClass'])) { |
|
1906 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1907 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
@@ 1906-1908 (lines=3) @@ | ||
1903 | $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
|
1904 | } |
|
1905 | if (isset($mapping['collectionClass'])) { |
|
1906 | if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
|
1907 | $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
|
1908 | } |
|
1909 | $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\'); |
|
1910 | } |
|
1911 | if ( ! empty($mapping['collectionClass'])) { |