From 1d52775d857c3e1305a10ef2905f979a9ad56ca3 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 19:37:45 +0800 Subject: [PATCH] modify --- 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 1fed0ad6..9e6d405b 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -854,7 +854,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess $loader = Snowflake::app()->getAnnotation(); if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) { var_dump(get_called_class() . '::' . $method); - return $this->{$method}(); + return $this->{$method}(...[$value]); } if (array_key_exists($name, $this->_attributes)) { return static::getColumns()->_decode($name, $value);