From ab4b293854bf627c1d5dafcd7218e36cb3580bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 29 Oct 2018 11:18:38 +0100 Subject: [PATCH] Insert new collection into database MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/Collaboration/Resources/Manager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 18301e0f2f..82a14f47d9 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/lib/private/Collaboration/Resources/Manager.php @@ -72,7 +72,10 @@ class Manager implements IManager { */ public function newCollection(string $name): ICollection { $query = $this->connection->getQueryBuilder(); - $query->insert('collres_collections'); + $query->insert('collres_collections') + ->values([ + 'name' => $query->createNamedParameter($name), + ]); $query->execute(); return new Collection($this, $this->connection, $query->getLastInsertId(), $name);