From ac443a49b1b95849ac52a939a6a39fe4e410872d Mon Sep 17 00:00:00 2001 From: xl Date: Thu, 25 May 2023 16:38:12 +0800 Subject: [PATCH] qqq --- Base/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/Model.php b/Base/Model.php index 36bf99c..5ad98ec 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -494,7 +494,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T { $changes = array_diff_assoc($this->_oldAttributes, $this->_attributes); - $condition = array_intersect_key($this->_oldAttributes, $this->_attributes); + $condition = array_intersect_assoc($this->_oldAttributes, $this->_attributes); return [$changes, $condition]; }