Skip to content

Commit 877ee5f

Browse files
juliusknorrnickvergessen
authored andcommitted
Insert new collection into database
Signed-off-by: Julius Härtl <[email protected]>
1 parent d30dd56 commit 877ee5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/private/Collaboration/Resources/Manager.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ public function getCollection(int $id): ICollection {
7272
*/
7373
public function newCollection(string $name): ICollection {
7474
$query = $this->connection->getQueryBuilder();
75-
$query->insert('collres_collections');
75+
$query->insert('collres_collections')
76+
->values([
77+
'name' => $query->createNamedParameter($name),
78+
]);
7679
$query->execute();
7780

7881
return new Collection($this, $this->connection, $query->getLastInsertId(), $name);

0 commit comments

Comments
 (0)