@@ 1339-1342 (lines=4) @@ | ||
1336 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1337 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1338 | } |
|
1339 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1340 | $this->file = $mapping['fieldName']; |
|
1341 | $mapping['name'] = 'file'; |
|
1342 | } |
|
1343 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1344 | $this->distance = $mapping['fieldName']; |
|
1345 | } |
|
@@ 1343-1345 (lines=3) @@ | ||
1340 | $this->file = $mapping['fieldName']; |
|
1341 | $mapping['name'] = 'file'; |
|
1342 | } |
|
1343 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1344 | $this->distance = $mapping['fieldName']; |
|
1345 | } |
|
1346 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1347 | $mapping['name'] = '_id'; |
|
1348 | $this->identifier = $mapping['fieldName']; |