From 959407a95ed5d60ed3ec266a9ad123791bec60eb Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 23 Apr 2026 00:19:10 +0800 Subject: [PATCH] eee --- Base/Model.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Base/Model.php b/Base/Model.php index db41b42..48a5702 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -732,13 +732,15 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \ $value = $this->_attributes[$name] ?? NULL; return $this->withPropertyOverride($name, $value); - } else if (isset($this->_oldAttributes[$name])) { + } + + if (isset($this->_oldAttributes[$name])) { $value = $this->_oldAttributes[$name] ?? NULL; return $this->withPropertyOverride($name, $value); - } else { - return parent::__get($name); } + + return parent::__get($name); }