Browse Source

champs mail unique

François 6 năm trước cách đây
mục cha
commit
4de36b21d9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;