|
@@ 1142-1145 (lines=4) @@
|
| 1139 |
|
if (isset($mapping['type']) && $mapping['type'] === 'increment') { |
| 1140 |
|
$mapping['strategy'] = self::STORAGE_STRATEGY_INCREMENT; |
| 1141 |
|
} |
| 1142 |
|
if (isset($mapping['file']) && $mapping['file'] === true) { |
| 1143 |
|
$this->file = $mapping['fieldName']; |
| 1144 |
|
$mapping['name'] = 'file'; |
| 1145 |
|
} |
| 1146 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1147 |
|
$this->distance = $mapping['fieldName']; |
| 1148 |
|
} |
|
@@ 1146-1148 (lines=3) @@
|
| 1143 |
|
$this->file = $mapping['fieldName']; |
| 1144 |
|
$mapping['name'] = 'file'; |
| 1145 |
|
} |
| 1146 |
|
if (isset($mapping['distance']) && $mapping['distance'] === true) { |
| 1147 |
|
$this->distance = $mapping['fieldName']; |
| 1148 |
|
} |
| 1149 |
|
if (isset($mapping['id']) && $mapping['id'] === true) { |
| 1150 |
|
$mapping['name'] = '_id'; |
| 1151 |
|
$this->identifier = $mapping['fieldName']; |