|
@@ 1152-1155 (lines=4) @@
|
| 1149 |
|
if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
| 1150 |
|
$mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
| 1151 |
|
} |
| 1152 |
|
if (isset($mapping['file']) && $mapping['file'] === true) { |
| 1153 |
|
$this->file = $mapping['fieldName']; |
| 1154 |
|
$mapping['name'] = 'file'; |
| 1155 |
|
} |
| 1156 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1157 |
|
$this->distance = $mapping['fieldName']; |
| 1158 |
|
} |
|
@@ 1156-1158 (lines=3) @@
|
| 1153 |
|
$this->file = $mapping['fieldName']; |
| 1154 |
|
$mapping['name'] = 'file'; |
| 1155 |
|
} |
| 1156 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1157 |
|
$this->distance = $mapping['fieldName']; |
| 1158 |
|
} |
| 1159 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 1160 |
|
$mapping['name'] = '_id'; |
| 1161 |
|
$this->identifier = $mapping['fieldName']; |