|
@@ 187-189 (lines=3) @@
|
| 184 |
|
|
| 185 |
|
$this->original[$key] = $tuple; |
| 186 |
|
|
| 187 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 188 |
|
$instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
$this->keys->offsetSet($instance, $key); |
| 192 |
|
|
|
@@ 230-234 (lines=5) @@
|
| 227 |
|
$client = $this->getMapper()->getClient(); |
| 228 |
|
$result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
| 229 |
|
foreach ($result->getData() as $tuple) { |
| 230 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 231 |
|
if (array_key_exists($index, $tuple)) { |
| 232 |
|
$instance->{$info['name']} = $tuple[$index]; |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
} |
| 236 |
|
} |
| 237 |
|
|