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