Skip to content

Commit

Permalink
Fixes issue LM-Commons#50
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Mar 12, 2024
1 parent 3fedbab commit 36d4097
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ public function getId()
*/
public function setId($id)
{
$this->id = (int) $id;
if (is_null($id)) {
$this->id = $id;
}
else {
$this->id = (int)$id;
}
return $this;
}

Expand Down

0 comments on commit 36d4097

Please sign in to comment.