Commit b2609a44 authored by Mat's avatar Mat
Browse files

contrainte email sur membre

parent 781c1d5a
......@@ -10,6 +10,10 @@ use Symfony\Component\Validator\Constraints as Assert;
*
* @ORM\Table(name="membre")
* @ORM\Entity(repositoryClass="AssoBundle\Repository\MembreRepository")
* @UniqueEntity(
* fields="email",
* message="L'adresse {{ value }} est déjà utilisée"
* )
*/
class Membre
{
......@@ -62,7 +66,7 @@ class Membre
* maxMessage = "Le champs doit contenir au maximum {{ limit }} caractères"
* )
* @Assert\Email(
* message = "The email '{{ value }}' is not a valid email.",
* message = "L'adresse mail {{ value }} n'est pas valide",
* checkMX = true
* )
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment