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.
1 parent b140b6f commit 7cb3d7bCopy full SHA for 7cb3d7b
src/SelectTree.php
@@ -87,7 +87,7 @@ private function buildTree(): Collection
87
$nullParentQuery = $this->getRelationship()->getRelated()->query()->where($this->getParentAttribute(), $this->getParentNullValue());
88
$nonNullParentQuery = $this->getRelationship()->getRelated()->query()->whereNot($this->getParentAttribute(), $this->getParentNullValue());
89
90
- // If we're not at the root level and a modification callback is provided, apply it to both queries.
+ // If we're not at the root level and a modification callback is provided, apply it to null query
91
if ($this->modifyQueryUsing) {
92
$nullParentQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $nullParentQuery]);
93
}
0 commit comments