mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 11:31:57 +01:00
fix: allow int type for abstract $id property in Database\Model (#27)
It's not guaranteed that the primary key ($id here) is a string. We primarily use UUIDs for the primary key, but it could also be an integer. Reviewed-on: https://codeberg.org/vlw/scaffold/pulls/27
This commit is contained in:
parent
c858cd111a
commit
a010322fbd
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
public const DATE_FORMAT = Database::DATE_FORMAT;
|
||||
public const DATETIME_FORMAT = Database::DATETIME_FORMAT;
|
||||
|
||||
abstract public string $id { get; }
|
||||
abstract public int|string $id { get; }
|
||||
|
||||
protected readonly Database $db;
|
||||
private bool $_resolved = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue