This commit is contained in:
as2252258@163.com
2021-04-24 19:37:45 +08:00
parent 788ec28ee9
commit 1d52775d85
+1 -1
View File
@@ -854,7 +854,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
$loader = Snowflake::app()->getAnnotation(); $loader = Snowflake::app()->getAnnotation();
if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) { if (!empty($method = $loader->getGetMethodName(get_called_class(), $name))) {
var_dump(get_called_class() . '::' . $method); var_dump(get_called_class() . '::' . $method);
return $this->{$method}(); return $this->{$method}(...[$value]);
} }
if (array_key_exists($name, $this->_attributes)) { if (array_key_exists($name, $this->_attributes)) {
return static::getColumns()->_decode($name, $value); return static::getColumns()->_decode($name, $value);