We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a02a2df + 5187667 commit c319813Copy full SHA for c319813
src/services/Elements.php
@@ -2834,6 +2834,8 @@ public function createEagerLoadingPlans(string|array $with): array
2834
if (!$path->count && !$path->all) {
2835
$path->all = true;
2836
}
2837
+ // ...recursively for any nested plans
2838
+ $path->nested = $this->createEagerLoadingPlans($path->nested);
2839
2840
// Don't index the plan by its alias, as two plans w/ different `when` filters could be using the same alias.
2841
// Side effect: mixing EagerLoadPlan objects and arrays could result in redundant element queries,
0 commit comments