|
@@ 168-170 (lines=3) @@
|
| 165 |
|
|
| 166 |
|
$this->original[$key] = $tuple; |
| 167 |
|
|
| 168 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 169 |
|
$instance->{$info['name']} = array_key_exists($index, $tuple) ? $tuple[$index] : null; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
$this->keys->offsetSet($instance, $key); |
| 173 |
|
|
|
@@ 207-211 (lines=5) @@
|
| 204 |
|
$client = $this->getMapper()->getClient(); |
| 205 |
|
$result = $client->getSpace($this->space->getId())->update($pk, $tupleOperations); |
| 206 |
|
foreach ($result->getData() as $tuple) { |
| 207 |
|
foreach ($this->space->getFormat() as $index => $info) { |
| 208 |
|
if (array_key_exists($index, $tuple)) { |
| 209 |
|
$instance->{$info['name']} = $tuple[$index]; |
| 210 |
|
} |
| 211 |
|
} |
| 212 |
|
} |
| 213 |
|
} |
| 214 |
|
|