From 48b18c2c81c394ba50e697cd7f92b5b2e1154576 Mon Sep 17 00:00:00 2001 From: Emmanuel Barat Date: Wed, 16 Nov 2022 09:35:46 +0100 Subject: [PATCH] Update index.md Specifying type:'datetime' for $publicationDate causes a denormalization failure. Removing it or replacing it with 'datetime_immutable' fixes the issue. --- distribution/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/index.md b/distribution/index.md index 1e4cb349c35..85580ed237d 100644 --- a/distribution/index.md +++ b/distribution/index.md @@ -393,7 +393,7 @@ Modify these files as described in these patches: public string $author = ''; /** The publication date of this book. */ -+ #[ORM\Column(type: 'datetime')] ++ #[ORM\Column] public ?\DateTimeImmutable $publicationDate = null; /** @var Review[] Available reviews for this book. */ @@ -433,7 +433,7 @@ Modify these files as described in these patches: public string $author = ''; /** The date of publication of this review.*/ -+ #[ORM\Column(type: 'datetime')] ++ #[ORM\Column] public ?\DateTimeImmutable $publicationDate = null; /** The book this review is about. */