From 5c8d6b1e5c87aaa809a0d2f4b346761592f44256 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Wed, 8 Feb 2017 20:28:00 +1000 Subject: [PATCH] Add missing commit --- src/Storage/DbalNestedSet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Storage/DbalNestedSet.php b/src/Storage/DbalNestedSet.php index a405446d..e1d74cdc 100644 --- a/src/Storage/DbalNestedSet.php +++ b/src/Storage/DbalNestedSet.php @@ -386,6 +386,7 @@ protected function moveSubTreeToPosition($newLeftPosition, Node $node) { $this->connection->executeUpdate('UPDATE ' . $this->tableName . ' SET right_pos = right_pos - ? WHERE right_pos > ?', [$width, $node->getRight()] ); + $this->connection->commit(); } catch (Exception $e) { $this->connection->rollBack();