Remove the predefined 'id' property.

This property is not necessary and gives less flexibility.
This commit is contained in:
kj
2025-08-15 14:51:16 -03:00
parent b2cb8d6883
commit 0f46848d15

View File

@ -23,8 +23,6 @@ use AllowDynamicProperties;
#[AllowDynamicProperties] #[AllowDynamicProperties]
class Model { class Model {
public ?int $id = null;
protected array $toNull = []; protected array $toNull = [];
static protected string $primaryKey = 'id'; static protected string $primaryKey = 'id';
static protected array $ignoreSave = ['id']; static protected array $ignoreSave = ['id'];