From 24c1072b2cda43a27b4bad999f09133e2e499cd9 Mon Sep 17 00:00:00 2001 From: Joeri van Veen Date: Thu, 19 Dec 2024 11:36:02 +0100 Subject: [PATCH] fix(audits): prevent type error for id in model (#291) INT-769 --- src/Entity/MyparcelnlAudit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Entity/MyparcelnlAudit.php b/src/Entity/MyparcelnlAudit.php index 041240f5..15922ce3 100755 --- a/src/Entity/MyparcelnlAudit.php +++ b/src/Entity/MyparcelnlAudit.php @@ -25,9 +25,9 @@ class MyparcelnlAudit extends AbstractEntity implements EntityWithCreatedTimesta private $action; /** - * @var string + * @var int * @ORM\Id - * @ORM\Column(name="id", type="string") + * @ORM\Column(name="id", type="integer") */ private $id; @@ -53,7 +53,7 @@ public function getAction(): string return $this->action; } - public function getId(): string + public function getId(): int { return $this->id; } @@ -73,9 +73,9 @@ public function setAction(string $action): void $this->action = $action; } - public function setId(string $id): void + public function setId($id): void { - $this->id = $id; + $this->id = (int) $id; } public function setModel(string $model): void