Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a101f9

Browse files
committed
Change DateTime assertion type in TechieAdvert and Application forms
Date and Time validators only accept strings since symfony/symfony#21905
1 parent d8f27ff commit 6a101f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Acts/CamdramBundle/Entity/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Application
8686
*
8787
* @ORM\Column(name="deadlinedate", type="date", nullable=false)
8888
* @Assert\NotBlank()
89-
* @Assert\Date()
89+
* @Assert\Type("\DateTimeInterface")
9090
* @Gedmo\Versioned
9191
* @Serializer\Expose
9292
* @Serializer\XmlElement(cdata=false)
@@ -108,7 +108,7 @@ class Application
108108
*
109109
* @ORM\Column(name="deadlinetime", type="time", nullable=false)
110110
* @Assert\NotBlank()
111-
* @Assert\Time()
111+
* @Assert\Type("\DateTimeInterface")
112112
* @Gedmo\Versioned
113113
* @Serializer\Expose
114114
* @Serializer\XmlElement(cdata=false)

src/Acts/CamdramBundle/Entity/TechieAdvert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TechieAdvert
8484
* @var \DateTime
8585
*
8686
* @ORM\Column(name="expiry", type="datetime", nullable=false)
87-
* @Assert\Date()
87+
* @Assert\Type("\DateTimeInterface")
8888
* @Gedmo\Versioned
8989
* @Serializer\Expose
9090
*/

0 commit comments

Comments
 (0)