Browse Source

Contrainte DateTime

François 5 years ago
parent
commit
35e3e572cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Entity/User.php

+ 2 - 2
src/Entity/User.php

@@ -75,7 +75,7 @@ class User implements UserInterface
      * @var \DateTime
      *
      * @ORM\Column(name="token_validity", type="datetime")
-     * @Assert\DateTime()
+     * @Assert\Type("DateTime")
      */
     private $tokenValidity;
 
@@ -104,7 +104,7 @@ class User implements UserInterface
      * @var \DateTime
      *
      * @ORM\Column(name="last_activity", type="datetime")
-     * @Assert\DateTime()
+     * @Assert\Type("DateTime")
      */
     private $lastActivity;