改名
This commit is contained in:
@@ -844,18 +844,13 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
{
|
||||
$value = $this->_attributes[$name] ?? null;
|
||||
$method = $this->_get_annotation($name, static::GET);
|
||||
|
||||
|
||||
var_dump($method);
|
||||
if (!empty($method)) {
|
||||
return $this->{$method}($value);
|
||||
}
|
||||
|
||||
$relation = $this->_get_annotation($name, static::RELATE);
|
||||
if (empty($relation)) {
|
||||
return $this->_decode($name, $value);
|
||||
}
|
||||
|
||||
if (($value = $this->{$relation}(...[$value])) instanceof HasBase) {
|
||||
return $value->get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user