Explorar o código

champs mail unique

François %!s(int64=6) %!d(string=hai) anos
pai
achega
4de36b21d9
Modificáronse 1 ficheiros con 1 adicións e 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;