@@ 1266-1269 (lines=4) @@ | ||
1263 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1264 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1265 | } |
|
1266 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1267 | $this->file = $mapping['fieldName']; |
|
1268 | $mapping['name'] = 'file'; |
|
1269 | } |
|
1270 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1271 | $this->distance = $mapping['fieldName']; |
|
1272 | } |
|
@@ 1270-1272 (lines=3) @@ | ||
1267 | $this->file = $mapping['fieldName']; |
|
1268 | $mapping['name'] = 'file'; |
|
1269 | } |
|
1270 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1271 | $this->distance = $mapping['fieldName']; |
|
1272 | } |
|
1273 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1274 | $mapping['name'] = '_id'; |
|
1275 | $this->identifier = $mapping['fieldName']; |