Skip to content

Commit

Permalink
fix(audits): prevent type error for id in model (#291)
Browse files Browse the repository at this point in the history
INT-769
  • Loading branch information
joerivanveen authored Dec 19, 2024
1 parent 0c3d1dd commit 24c1072
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Entity/MyparcelnlAudit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -53,7 +53,7 @@ public function getAction(): string
return $this->action;
}

public function getId(): string
public function getId(): int
{
return $this->id;
}
Expand All @@ -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
Expand Down

0 comments on commit 24c1072

Please sign in to comment.