@@ 1233-1236 (lines=4) @@ | ||
1230 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1231 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1232 | } |
|
1233 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1234 | $this->file = $mapping['fieldName']; |
|
1235 | $mapping['name'] = 'file'; |
|
1236 | } |
|
1237 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1238 | $this->distance = $mapping['fieldName']; |
|
1239 | } |
|
@@ 1237-1239 (lines=3) @@ | ||
1234 | $this->file = $mapping['fieldName']; |
|
1235 | $mapping['name'] = 'file'; |
|
1236 | } |
|
1237 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1238 | $this->distance = $mapping['fieldName']; |
|
1239 | } |
|
1240 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1241 | $mapping['name'] = '_id'; |
|
1242 | $this->identifier = $mapping['fieldName']; |