|
@@ 245-247 (lines=3) @@
|
| 242 |
|
|
| 243 |
|
$this->original[$key] = $tuple; |
| 244 |
|
|
| 245 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 246 |
|
$instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
$this->keys->offsetSet($instance, $key); |
| 250 |
|
|
|
@@ 293-297 (lines=5) @@
|
| 290 |
|
$client = $this->getMapper()->getClient(); |
| 291 |
|
$result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
| 292 |
|
foreach ($result->getData() as $tuple) { |
| 293 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 294 |
|
if (array_key_exists($index, $tuple)) { |
| 295 |
|
$instance->{$info['name']} = $tuple[$index]; |
| 296 |
|
} |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
} |
| 300 |
|
|