make unique custom url for polls

This commit is contained in:
Tykayn 2021-04-21 11:47:06 +02:00 committed by tykayn
parent 2d2607d30b
commit 6626241ce8
1 changed files with 1 additions and 1 deletions

View File

@ -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")
*/