From 6626241ce8ba58df14caf11f71dd715d8984dfb1 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Wed, 21 Apr 2021 11:47:06 +0200 Subject: [PATCH] make unique custom url for polls --- src/Entity/Poll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Poll.php b/src/Entity/Poll.php index 0110d2b..5b3c39d 100755 --- a/src/Entity/Poll.php +++ b/src/Entity/Poll.php @@ -29,7 +29,7 @@ class Poll { */ public $title; /** - * @ORM\Column(type="string", length=255, nullable=true) + * @ORM\Column(type="string", length=255, nullable=false, unique=true) * @Serializer\Expose() * @Serializer\Type("string") */