From 70f3714b1541699e58a41b0d118350b72e72fef2 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 11 Nov 2021 03:39:57 +0800 Subject: [PATCH] 1 --- src/Base/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Base/Model.php b/src/Base/Model.php index 9cc7c0d..5ed51c9 100644 --- a/src/Base/Model.php +++ b/src/Base/Model.php @@ -527,8 +527,8 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T if (empty($param) || !is_array($param)) { return $this; } - foreach ($this->_oldAttributes as $key => $attribute) { - $this->_oldAttributes[$key] = $this->_setter($key, $attribute); + foreach ($param as $key => $attribute) { + $this->setOldAttribute($key, $attribute); } return $this; }