Make 'unique' an integer

Solves #176 #189

Signed-off-by: Jonas Rittershofer <github@hofritter.de>
This commit is contained in:
Jonas 2020-02-17 23:53:33 +01:00 committed by Jonas Rittershofer
commit ce58cfc472

View file

@ -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() {