This commit is contained in:
2021-04-27 18:59:56 +08:00
parent b294d0fbde
commit 1410bb4721
+1 -1
View File
@@ -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);