@@ 230-232 (lines=3) @@ | ||
227 | ||
228 | $this->original[$key] = $tuple; |
|
229 | ||
230 | foreach ($this->space->getFormat() as $index => $info) { |
|
231 | $instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
|
232 | } |
|
233 | ||
234 | $this->keys->offsetSet($instance, $key); |
|
235 | ||
@@ 278-282 (lines=5) @@ | ||
275 | $client = $this->getMapper()->getClient(); |
|
276 | $result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
|
277 | foreach ($result->getData() as $tuple) { |
|
278 | foreach ($this->space->getFormat() as $index => $info) { |
|
279 | if (array_key_exists($index, $tuple)) { |
|
280 | $instance->{$info['name']} = $tuple[$index]; |
|
281 | } |
|
282 | } |
|
283 | } |
|
284 | } |
|
285 |