@@ 206-208 (lines=3) @@ | ||
203 | ||
204 | $this->original[$key] = $tuple; |
|
205 | ||
206 | foreach ($this->space->getFormat() as $index => $info) { |
|
207 | $instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
|
208 | } |
|
209 | ||
210 | $this->keys->offsetSet($instance, $key); |
|
211 | ||
@@ 254-258 (lines=5) @@ | ||
251 | $client = $this->getMapper()->getClient(); |
|
252 | $result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
|
253 | foreach ($result->getData() as $tuple) { |
|
254 | foreach ($this->space->getFormat() as $index => $info) { |
|
255 | if (array_key_exists($index, $tuple)) { |
|
256 | $instance->{$info['name']} = $tuple[$index]; |
|
257 | } |
|
258 | } |
|
259 | } |
|
260 | } |
|
261 |