From ce58cfc472778c758801a7d74acff1b284788fd4 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 17 Feb 2020 23:53:33 +0100 Subject: [PATCH] Make 'unique' an integer Solves #176 #189 Signed-off-by: Jonas Rittershofer --- lib/Db/Event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Db/Event.php b/lib/Db/Event.php index 6ba1e9c..c4b360f 100644 --- a/lib/Db/Event.php +++ b/lib/Db/Event.php @@ -46,7 +46,7 @@ use OCP\AppFramework\Db\Entity; * @method integer getIsAnonymous() * @method void setIsAnonymous(integer $value) * @method integer getUnique() - * @method void setUnique(boolean $value) + * @method void setUnique(integer $value) */ class Event extends Entity { protected $title; @@ -66,6 +66,7 @@ class Event extends Entity { */ public function __construct() { $this->addType('isAnonymous', 'integer'); + $this->addType('unique', 'integer'); } public function read() {