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.
2 parents e2537c7 + c0326e1 commit dd47e4fCopy full SHA for dd47e4f
src/Behavior.php
@@ -160,7 +160,7 @@ public function processDelete(ModelInterface $model): void
160
$model->getWriteConnection()->query($query, [
161
'right' => $model->readAttribute(self::$rightKey),
162
'left' => $model->readAttribute(self::$leftKey),
163
- 'parent' => $parent ? $parent->readAttribute(self::$parentKey) : 0
+ 'parent' => $parent ? $parent->readAttribute(self::$primaryKey) : 0
164
]);
165
166
$query = 'UPDATE `' . $model->getSource() . '` SET ' .
0 commit comments