diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index 2cc3d77..4dfee70 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -363,10 +363,6 @@ public function beforeDelete(): void */ public function beforeInsert(): void { - if ($this->node?->getIsNewRecord() === false) { - $this->node->refresh(); - } - $nodeLeftValue = $this->node?->getAttribute($this->leftAttribute) ?? 0; $nodeRightValue = $this->node?->getAttribute($this->rightAttribute) ?? 0;