Fixed: When model cache update, not only the modified fields are updated

This commit is contained in:
李铭昕 2019-02-17 13:05:19 +08:00
parent 04628a49d4
commit 457f979310

View File

@ -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.