Skip to content

Commit 7cb3d7b

Browse files
Edit comment
1 parent b140b6f commit 7cb3d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SelectTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private function buildTree(): Collection
8787
$nullParentQuery = $this->getRelationship()->getRelated()->query()->where($this->getParentAttribute(), $this->getParentNullValue());
8888
$nonNullParentQuery = $this->getRelationship()->getRelated()->query()->whereNot($this->getParentAttribute(), $this->getParentNullValue());
8989

90-
// If we're not at the root level and a modification callback is provided, apply it to both queries.
90+
// If we're not at the root level and a modification callback is provided, apply it to null query
9191
if ($this->modifyQueryUsing) {
9292
$nullParentQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $nullParentQuery]);
9393
}

0 commit comments

Comments
 (0)