We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0caad9 commit 4a0f480Copy full SHA for 4a0f480
src/Behavior.php
@@ -200,8 +200,6 @@ public function processUpdate(ModelInterface $model): void
200
return;
201
}
202
203
- $maxRight = $model::maximum(['column' => self::$rightKey]);
204
-
205
// upgrade children of current node in the tree
206
$query = 'UPDATE `' . $model->getSource() . '` SET ' .
207
'`' . self::$depthDbColumn . '` = `' . self::$depthDbColumn . '` - 1, ' .
@@ -241,6 +239,7 @@ public function processUpdate(ModelInterface $model): void
241
239
'id' => $model->readAttribute(self::$primaryKey),
242
240
]);
243
+ $maxRight = $model::maximum(['column' => self::$rightKey]);
244
// unset the parent - make the node a root
245
if (!$parentModel) {
246
$model->assign([
0 commit comments