mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Fixed: When model cache update, not only the modified fields are updated
This commit is contained in:
parent
04628a49d4
commit
457f979310
@ -69,7 +69,7 @@ class Manager
|
||||
$key = $this->getCacheKey($id, $instance, $handler->getConfig());
|
||||
$data = $handler->get($key);
|
||||
if ($data) {
|
||||
return $instance->newInstance($data, true);
|
||||
return $instance->newInstance($data, true)->syncOriginal();
|
||||
}
|
||||
|
||||
// Fetch it from database, because it not exist in cache handler.
|
||||
|
Loading…
Reference in New Issue
Block a user