Explorar el Código

champs mail unique

François hace 6 años
padre
commit
4de36b21d9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;