mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
改进关联查询方法relation
This commit is contained in:
@@ -1947,7 +1947,7 @@ abstract class Driver
|
||||
$result->isUpdate(true);
|
||||
// 关联查询
|
||||
if (!empty($options['relation'])) {
|
||||
$result->relation($options['relation']);
|
||||
$result->relationQuery($options['relation']);
|
||||
}
|
||||
}
|
||||
$resultSet[$key] = $result;
|
||||
@@ -2054,7 +2054,7 @@ abstract class Driver
|
||||
$data->isUpdate(true);
|
||||
// 关联查询
|
||||
if (!empty($options['relation'])) {
|
||||
$data->relation($options['relation']);
|
||||
$data->relationQuery($options['relation']);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user