From 1410bb472176f838a5c6aa0b1fce6c1402954dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 18:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Base/BaseActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 34b8d796..0de3ea6e 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -845,7 +845,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess $value = $this->_attributes[$name] ?? null; $method = $this->_get_annotation($name, static::GET); if (!empty($method)) { - return $this->{$method}(...[$value]); + return $this->{$method}($value); } $relation = $this->_get_annotation($name, static::RELATE);