|
@@ 1332-1335 (lines=4) @@
|
| 1329 |
|
if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
| 1330 |
|
$mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
| 1331 |
|
} |
| 1332 |
|
if (isset($mapping['file']) && $mapping['file'] === true) { |
| 1333 |
|
$this->file = $mapping['fieldName']; |
| 1334 |
|
$mapping['name'] = 'file'; |
| 1335 |
|
} |
| 1336 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1337 |
|
$this->distance = $mapping['fieldName']; |
| 1338 |
|
} |
|
@@ 1336-1338 (lines=3) @@
|
| 1333 |
|
$this->file = $mapping['fieldName']; |
| 1334 |
|
$mapping['name'] = 'file'; |
| 1335 |
|
} |
| 1336 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1337 |
|
$this->distance = $mapping['fieldName']; |
| 1338 |
|
} |
| 1339 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 1340 |
|
$mapping['name'] = '_id'; |
| 1341 |
|
$this->identifier = $mapping['fieldName']; |