|
@@ 1159-1162 (lines=4) @@
|
| 1156 |
|
if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
| 1157 |
|
$mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
| 1158 |
|
} |
| 1159 |
|
if (isset($mapping['file']) && $mapping['file'] === true) { |
| 1160 |
|
$this->file = $mapping['fieldName']; |
| 1161 |
|
$mapping['name'] = 'file'; |
| 1162 |
|
} |
| 1163 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1164 |
|
$this->distance = $mapping['fieldName']; |
| 1165 |
|
} |
|
@@ 1163-1165 (lines=3) @@
|
| 1160 |
|
$this->file = $mapping['fieldName']; |
| 1161 |
|
$mapping['name'] = 'file'; |
| 1162 |
|
} |
| 1163 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1164 |
|
$this->distance = $mapping['fieldName']; |
| 1165 |
|
} |
| 1166 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 1167 |
|
$mapping['name'] = '_id'; |
| 1168 |
|
$this->identifier = $mapping['fieldName']; |