mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
规范预载入方法的调用 如果调用user_profile 预载入会自动对应 userProfile关联方法
This commit is contained in:
@@ -1653,7 +1653,8 @@ class Query
|
||||
}
|
||||
|
||||
/** @var Relation $model */
|
||||
$model = $class->$relation();
|
||||
$relation = Loader::parseName($relation, 1);
|
||||
$model = $class->$relation();
|
||||
if ($model instanceof HasOne || $model instanceof BelongsTo) {
|
||||
$model->eagerly($this, $relation, $subRelation, $closure, $first);
|
||||
$first = false;
|
||||
|
||||
Reference in New Issue
Block a user