Skip to content

Commit 142e71c

Browse files
authored
Merge pull request lazychaser#151 from ceesvanegmond/v3
Feature: Decrease number of queries used by nested set
2 parents 90db782 + 31b3bd5 commit 142e71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function linkNodes()
2121

2222
/** @var Node $node */
2323
foreach ($this->items as $node) {
24-
if ( ! isset($node->parent)) {
24+
if (! $node->parent_id) {
2525
$node->setRelation('parent', null);
2626
}
2727

0 commit comments

Comments
 (0)