mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
改进一对一关联预载入查询
This commit is contained in:
@@ -304,6 +304,8 @@ abstract class OneToOne extends Relation
|
|||||||
*/
|
*/
|
||||||
protected function eagerlyWhere($model, $where, $key, $relation, $subRelation = '', $closure = false)
|
protected function eagerlyWhere($model, $where, $key, $relation, $subRelation = '', $closure = false)
|
||||||
{
|
{
|
||||||
|
$this->baseQuery = true;
|
||||||
|
|
||||||
// 预载入关联查询 支持嵌套预载入
|
// 预载入关联查询 支持嵌套预载入
|
||||||
if ($closure) {
|
if ($closure) {
|
||||||
call_user_func_array($closure, [ & $model]);
|
call_user_func_array($closure, [ & $model]);
|
||||||
|
|||||||
Reference in New Issue
Block a user