Skip to content

Commit 8c13b99

Browse files
committed
Fix getTree
1 parent 05223e5 commit 8c13b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storage/DbalNestedSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function getTree() {
211211
$tree = [];
212212
$stmt = $this->connection->executeQuery('SELECT id, revision_id, left_pos, right_pos, depth FROM ' . $this->tableName . ' ORDER BY left_pos');
213213
while ($row = $stmt->fetch()) {
214-
$tree[] = new Node($row['id'], $row['revision_id'], $row['left_pos'], $row['right_pos'], $row['depth']);
214+
$tree[] = new Node(new NodeKey($row['id'], $row['revision_id']), $row['left_pos'], $row['right_pos'], $row['depth']);
215215
}
216216
return $tree;
217217
}

0 commit comments

Comments
 (0)