|
|
@ -243,10 +243,16 @@ class ActiveQuery extends Query implements ActiveQueryInterface |
|
|
|
unset($with[$name]); |
|
|
|
unset($with[$name]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$this->with($with); |
|
|
|
} elseif (!$eagerLoading) { |
|
|
|
} elseif ($eagerLoading) { |
|
|
|
$with = []; |
|
|
|
$this->with($with); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($with)) { |
|
|
|
|
|
|
|
foreach ($with as $name => $value) { |
|
|
|
|
|
|
|
$this->with[$name] = $value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|