From 5c4bef26e8dd2c13cef3e7244748641041a76a98 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 7 Jan 2022 14:55:18 +0100 Subject: [PATCH] hotfix typo in NotificationComment --- .../ChillMainBundle/Entity/NotificationComment.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Entity/NotificationComment.php b/src/Bundle/ChillMainBundle/Entity/NotificationComment.php index a26c41916..bbcc565fb 100644 --- a/src/Bundle/ChillMainBundle/Entity/NotificationComment.php +++ b/src/Bundle/ChillMainBundle/Entity/NotificationComment.php @@ -63,6 +63,7 @@ class NotificationComment implements TrackCreationInterface, TrackUpdateInterfac private bool $recentlyPersisted = false; /** + * TODO typo in property (hotfixed) * @ORM\Column(type="datetime_immutable", nullable=true) */ private ?DateTimeImmutable $updateAt = null; @@ -98,7 +99,7 @@ class NotificationComment implements TrackCreationInterface, TrackUpdateInterfac return $this->notification; } - public function getUpdateAt(): ?DateTimeImmutable + public function getUpdatedAt(): ?DateTimeImmutable { return $this->updateAt; } @@ -165,11 +166,12 @@ class NotificationComment implements TrackCreationInterface, TrackUpdateInterfac return $this; } + /** + * @deprecated use @link{self::setUpdatedAt} instead + */ public function setUpdateAt(?DateTimeImmutable $updateAt): self { - $this->updateAt = $updateAt; - - return $this; + return $this->setUpdatedAt($updateAt); } public function setUpdatedAt(DateTimeInterface $datetime): self