|
@@ 1083-1085 (lines=3) @@
|
| 1080 |
|
if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) { |
| 1081 |
|
throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField); |
| 1082 |
|
} |
| 1083 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1084 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1085 |
|
} |
| 1086 |
|
if (isset($mapping['collectionClass']) && strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1087 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1088 |
|
} |
|
@@ 1086-1088 (lines=3) @@
|
| 1083 |
|
if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) { |
| 1084 |
|
$mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument']; |
| 1085 |
|
} |
| 1086 |
|
if (isset($mapping['collectionClass']) && strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) { |
| 1087 |
|
$mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass']; |
| 1088 |
|
} |
| 1089 |
|
if ( ! empty($mapping['collectionClass'])) { |
| 1090 |
|
$rColl = new \ReflectionClass($mapping['collectionClass']); |
| 1091 |
|
if ( ! $rColl->implementsInterface('Doctrine\\Common\\Collections\\Collection')) { |