diff --git a/src/Entity/Invite.php b/src/Entity/Invite.php index 9b94836..14f6870 100644 --- a/src/Entity/Invite.php +++ b/src/Entity/Invite.php @@ -30,7 +30,7 @@ class Invite /** * @var string * - * @ORM\Column(name="code", type="string", length=32) + * @ORM\Column(name="code", type="string", length=32, unique=true) */ private $code;