From 963c495a4d9afe2efb3adf951bd2c6018e1dccf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 1 Mar 2022 17:23:26 +0800 Subject: [PATCH] modify plugin name --- Base/Model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Base/Model.php b/Base/Model.php index 7c6a83b..171711b 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -397,7 +397,6 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T /** * @return static - * @throws ReflectionException */ private static function makeNewInstance(): static { @@ -710,7 +709,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T */ private function separation(): array { - $assoc = array_diff_assoc($this->_oldAttributes, $this->_attributes); + $assoc = array_diff_assoc($this->_attributes, $this->_oldAttributes); $uassoc = array_intersect_assoc($this->_attributes, $this->_oldAttributes);