@@ 175-177 (lines=3) @@ | ||
172 | ||
173 | $this->original[$key] = $tuple; |
|
174 | ||
175 | foreach ($this->space->getFormat() as $index => $info) { |
|
176 | $instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
|
177 | } |
|
178 | ||
179 | $this->keys->offsetSet($instance, $key); |
|
180 | ||
@@ 214-218 (lines=5) @@ | ||
211 | $client = $this->getMapper()->getClient(); |
|
212 | $result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
|
213 | foreach ($result->getData() as $tuple) { |
|
214 | foreach ($this->space->getFormat() as $index => $info) { |
|
215 | if (array_key_exists($index, $tuple)) { |
|
216 | $instance->{$info['name']} = $tuple[$index]; |
|
217 | } |
|
218 | } |
|
219 | } |
|
220 | } |
|
221 |