|
@@ 1281-1284 (lines=4) @@
|
| 1278 |
|
if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
| 1279 |
|
$mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
| 1280 |
|
} |
| 1281 |
|
if (isset($mapping['file']) && $mapping['file'] === true) { |
| 1282 |
|
$this->file = $mapping['fieldName']; |
| 1283 |
|
$mapping['name'] = 'file'; |
| 1284 |
|
} |
| 1285 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1286 |
|
$this->distance = $mapping['fieldName']; |
| 1287 |
|
} |
|
@@ 1285-1287 (lines=3) @@
|
| 1282 |
|
$this->file = $mapping['fieldName']; |
| 1283 |
|
$mapping['name'] = 'file'; |
| 1284 |
|
} |
| 1285 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1286 |
|
$this->distance = $mapping['fieldName']; |
| 1287 |
|
} |
| 1288 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 1289 |
|
$mapping['name'] = '_id'; |
| 1290 |
|
$this->identifier = $mapping['fieldName']; |