@@ 1378-1381 (lines=4) @@ | ||
1375 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1376 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1377 | } |
|
1378 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1379 | $this->file = $mapping['fieldName']; |
|
1380 | $mapping['name'] = 'file'; |
|
1381 | } |
|
1382 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1383 | $this->distance = $mapping['fieldName']; |
|
1384 | } |
|
@@ 1382-1384 (lines=3) @@ | ||
1379 | $this->file = $mapping['fieldName']; |
|
1380 | $mapping['name'] = 'file'; |
|
1381 | } |
|
1382 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1383 | $this->distance = $mapping['fieldName']; |
|
1384 | } |
|
1385 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1386 | $mapping['name'] = '_id'; |
|
1387 | $this->identifier = $mapping['fieldName']; |