Skip to content

Commit 8a37ff9

Browse files
authored
Substitute Date annotation with Field(type="date")
User Deprecated: Doctrine\ODM\MongoDB\Mapping\Annotations\Date will be removed in ODM 2.0. Use `@ODM\Field(type="date")` instead.
1 parent 5e2cc07 commit 8a37ff9

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)