Przeglądaj źródła

champs mail unique

François 6 lat temu
rodzic
commit
4de36b21d9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/AppBundle/Entity/User.php

+ 1 - 1
src/AppBundle/Entity/User.php

@@ -47,7 +47,7 @@ class User implements UserInterface
     /**
      * @var string
      *
-     * @ORM\Column(name="mail", type="string", length=255)
+     * @ORM\Column(name="mail", type="string", length=255, unique=true)
      */
     private $mail;