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]
|
#[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'];
|
||||||
|
Reference in New Issue
Block a user