Skip to content

Commit

Permalink
Merge pull request #46 from 21TORR/unsigned-int
Browse files Browse the repository at this point in the history
  • Loading branch information
keichinger authored Jul 8, 2024
2 parents 7c6f290 + da178db commit 82dfcb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

* (internal) Simplify types of `ArgumentBag`.
* (internal) Only ignore a single PHPStan issue for the container helper in `BaseController`.
* (improvement) Use unsigned `int`s for id fields in the database.


3.2.0
Expand Down
4 changes: 3 additions & 1 deletion src/Entity/EntityFieldsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ trait EntityFieldsTrait
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "AUTO")]
#[ORM\Column(name: "id", type: Types::INTEGER)]
#[ORM\Column(name: "id", type: Types::INTEGER, options: [
"unsigned" => true,
])]
private ?int $id = null;

/**
Expand Down

0 comments on commit 82dfcb1

Please sign in to comment.