Skip to content

Commit a450a8d

Browse files
authored
Merge pull request #1803 from jeremyjumeau/patch-1
Substitute Date annotation with Field(type="date")
2 parents 5e2cc07 + 8a37ff9 commit a450a8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Gedmo/Timestampable/Traits/TimestampableDocument.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ trait TimestampableDocument
1616
/**
1717
* @var \DateTime
1818
* @Gedmo\Timestampable(on="create")
19-
* @ODM\Date
19+
* @ODM\Field(type="date")
2020
*/
2121
protected $createdAt;
2222

2323
/**
2424
* @var \DateTime
2525
* @Gedmo\Timestampable(on="update")
26-
* @ODM\Date
26+
* @ODM\Field(type="date")
2727
*/
2828
protected $updatedAt;
2929

0 commit comments

Comments
 (0)