@@ 1218-1221 (lines=4) @@ | ||
1215 | if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
|
1216 | $mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
|
1217 | } |
|
1218 | if (isset($mapping['file']) && $mapping['file'] === true) { |
|
1219 | $this->file = $mapping['fieldName']; |
|
1220 | $mapping['name'] = 'file'; |
|
1221 | } |
|
1222 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1223 | $this->distance = $mapping['fieldName']; |
|
1224 | } |
|
@@ 1222-1224 (lines=3) @@ | ||
1219 | $this->file = $mapping['fieldName']; |
|
1220 | $mapping['name'] = 'file'; |
|
1221 | } |
|
1222 | if (isset($mapping['distance']) && $mapping['distance'] === true) { |
|
1223 | $this->distance = $mapping['fieldName']; |
|
1224 | } |
|
1225 | if (isset($mapping['id']) && $mapping['id'] === true) { |
|
1226 | $mapping['name'] = '_id'; |
|
1227 | $this->identifier = $mapping['fieldName']; |