改名
This commit is contained in:
@@ -292,6 +292,9 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
$resolve = $this->{$data}();
|
$resolve = $this->{$data}();
|
||||||
|
if ($resolve instanceof HasBase) {
|
||||||
|
$resolve = $resolve->get();
|
||||||
|
}
|
||||||
if ($resolve instanceof Collection) {
|
if ($resolve instanceof Collection) {
|
||||||
return $resolve->toArray();
|
return $resolve->toArray();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user