François 6 жил өмнө
parent
commit
d4246b723d

+ 3 - 0
src/AppBundle/Entity/User.php

@@ -54,6 +54,7 @@ class User implements UserInterface
      * @var string
      *
      * @ORM\Column(name="mail", type="string", length=255, unique=true)
+     * @Assert\Email()
      */
     private $mail;
 
@@ -75,6 +76,7 @@ class User implements UserInterface
      * @var \DateTime
      *
      * @ORM\Column(name="token_validity", type="datetime")
+     * @Assert\DateTime()
      */
     private $tokenValidity;
 
@@ -96,6 +98,7 @@ class User implements UserInterface
      * @var \DateTime
      *
      * @ORM\Column(name="last_activity", type="datetime")
+     * @Assert\DateTime()
      */
     private $lastActivity;