Skip to content

Commit c4287b3

Browse files
authored
Update index.md (#1658)
Specifying type:'datetime' for $publicationDate causes a denormalization failure. Removing it or replacing it with 'datetime_immutable' fixes the issue.
1 parent 5c4bc60 commit c4287b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ Modify these files as described in these patches:
393393
public string $author = '';
394394

395395
/** The publication date of this book. */
396-
+ #[ORM\Column(type: 'datetime')]
396+
+ #[ORM\Column]
397397
public ?\DateTimeImmutable $publicationDate = null;
398398

399399
/** @var Review[] Available reviews for this book. */
@@ -433,7 +433,7 @@ Modify these files as described in these patches:
433433
public string $author = '';
434434

435435
/** The date of publication of this review.*/
436-
+ #[ORM\Column(type: 'datetime')]
436+
+ #[ORM\Column]
437437
public ?\DateTimeImmutable $publicationDate = null;
438438

439439
/** The book this review is about. */

0 commit comments

Comments
 (0)