Skip to content

Commit 101a849

Browse files
committed
lazychaser#96: don't fill children when rebuilding tree
1 parent ba6ac45 commit 101a849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ protected function buildRebuildDictionary(array &$dictionary,
899899
unset($existing[$key]);
900900
}
901901

902-
$model->fill($itemData)->save();
902+
$model->fill(Arr::except($itemData, 'children'))->save();
903903

904904
$dictionary[$parentId][] = $model;
905905

0 commit comments

Comments
 (0)