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