|
@@ 1193-1195 (lines=3) @@
|
| 1190 |
|
} |
| 1191 |
|
|
| 1192 |
|
// Synchronize the "simple" and "storeAs" mapping information for backwards compatibility |
| 1193 |
|
if (isset($mapping['simple']) && $mapping['simple'] === true) { |
| 1194 |
|
$mapping['storeAs'] = ClassMetadataInfo::REFERENCE_STORE_AS_ID; |
| 1195 |
|
} |
| 1196 |
|
if (isset($mapping['storeAs']) && $mapping['storeAs'] === ClassMetadataInfo::REFERENCE_STORE_AS_ID) { |
| 1197 |
|
$mapping['simple'] = true; |
| 1198 |
|
} |
|
@@ 1196-1198 (lines=3) @@
|
| 1193 |
|
if (isset($mapping['simple']) && $mapping['simple'] === true) { |
| 1194 |
|
$mapping['storeAs'] = ClassMetadataInfo::REFERENCE_STORE_AS_ID; |
| 1195 |
|
} |
| 1196 |
|
if (isset($mapping['storeAs']) && $mapping['storeAs'] === ClassMetadataInfo::REFERENCE_STORE_AS_ID) { |
| 1197 |
|
$mapping['simple'] = true; |
| 1198 |
|
} |
| 1199 |
|
|
| 1200 |
|
if (isset($mapping['reference']) && ! empty($mapping['simple']) && ! isset($mapping['targetDocument'])) { |
| 1201 |
|
throw MappingException::simpleReferenceRequiresTargetDocument($this->name, $mapping['fieldName']); |