Remove the predefined 'id' property.
This property is not necessary and gives less flexibility.
This commit is contained in:
@ -23,8 +23,6 @@ use AllowDynamicProperties;
|
||||
|
||||
#[AllowDynamicProperties]
|
||||
class Model {
|
||||
|
||||
public ?int $id = null;
|
||||
protected array $toNull = [];
|
||||
static protected string $primaryKey = 'id';
|
||||
static protected array $ignoreSave = ['id'];
|
||||
|
Reference in New Issue
Block a user