Skip to content

Commit a5e857f

Browse files
authored
Merge pull request lazychaser#148 from oddvalue/patch-1
Target $original in `NodeTrait::dirtyBounds` rather than $attributes
2 parents f37620c + bb87fb2 commit a5e857f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NodeTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,9 @@ public function setParentId($value)
11381138
*/
11391139
protected function dirtyBounds()
11401140
{
1141-
return $this->setLft(null)->setRgt(null);
1141+
$this->original[$this->getLftName()] = null;
1142+
$this->original[$this->getRgtName()] = null;
1143+
return $this;
11421144
}
11431145

11441146
/**

0 commit comments

Comments
 (0)