- Defined creation/updated dates as readonly
This commit is contained in:
1 parent
fbf9bc871c
commit
c7b04d7e46
2 files changed
+5
-5
No files matched your search
+4
-4
@@ -47,11 +47,11 @@ class User {
|
||||
#[Field]
|
||||
public string $password;
|
||||
|
||||
#[Field\UpdatedAt(readonly: true, name: "updated_at")]
|
||||
public ? Datetime $updatedAt;
|
||||
#[Field\UpdatedAt(name: "updated_at")]
|
||||
public readonly ? Datetime $updatedAt;
|
||||
|
||||
#[Field\CreatedAt(readonly: true, name: "created_at")]
|
||||
public Datetime $createdAt;
|
||||
#[Field\CreatedAt(name: "created_at")]
|
||||
public readonly Datetime $createdAt;
|
||||
|
||||
public bool $logged = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user