diff --git a/src/Collection.php b/src/Collection.php index be592a8..a592ee2 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -21,7 +21,7 @@ public function linkNodes() /** @var Node $node */ foreach ($this->items as $node) { - if (! $node->parent_id) { + if (is_null($node->getParentId())) { $node->setRelation('parent', null); }