From b81be565aecf456b322320d3a56d14254d0e19bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Aug 2023 00:16:49 +0800 Subject: [PATCH] qqq --- Base/Model.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Base/Model.php b/Base/Model.php index d2eb97b..b5ddea0 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -487,11 +487,8 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T * @return bool|$this * @throws Exception */ - public function save(array $data = []): static|bool + public function save(): static|bool { - if (count($data) > 0) { - $this->_attributes = array_merge($this->_attributes, $data); - } if (!$this->isNewExample) { if (!$this->validator($this->rules()) || !$this->beforeSave($this)) { return FALSE;