@@ 249-251 (lines=3) @@ | ||
246 | ||
247 | $this->original[$key] = $tuple; |
|
248 | ||
249 | foreach ($this->space->getFormat() as $index => $info) { |
|
250 | $instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
|
251 | } |
|
252 | ||
253 | $this->keys->offsetSet($instance, $key); |
|
254 | ||
@@ 297-301 (lines=5) @@ | ||
294 | $client = $this->getMapper()->getClient(); |
|
295 | $result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
|
296 | foreach ($result->getData() as $tuple) { |
|
297 | foreach ($this->space->getFormat() as $index => $info) { |
|
298 | if (array_key_exists($index, $tuple)) { |
|
299 | $instance->{$info['name']} = $tuple[$index]; |
|
300 | } |
|
301 | } |
|
302 | } |
|
303 | } |
|
304 |