@@ 1289-1292 (lines=4) @@ | ||
1286 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1287 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1288 | } |
|
1289 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1290 | $this->file = $mapping['fieldName']; |
|
1291 | $mapping['name'] = 'file'; |
|
1292 | } |
|
1293 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1294 | $this->distance = $mapping['fieldName']; |
|
1295 | } |
|
@@ 1293-1295 (lines=3) @@ | ||
1290 | $this->file = $mapping['fieldName']; |
|
1291 | $mapping['name'] = 'file'; |
|
1292 | } |
|
1293 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1294 | $this->distance = $mapping['fieldName']; |
|
1295 | } |
|
1296 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1297 | $mapping['name'] = '_id'; |
|
1298 | $this->identifier = $mapping['fieldName']; |