- Defined creation/updated dates as readonly
This commit is contained in:
parent
fbf9bc871c
commit
c7b04d7e46
|
@ -6,7 +6,7 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Dave Mc Nicoll",
|
"name": "Dave Mc Nicoll",
|
||||||
"email": "mcndave@gmail.com"
|
"email": "info@mcnd.ca"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
|
|
|
@ -47,11 +47,11 @@ class User {
|
||||||
#[Field]
|
#[Field]
|
||||||
public string $password;
|
public string $password;
|
||||||
|
|
||||||
#[Field\UpdatedAt(readonly: true, name: "updated_at")]
|
#[Field\UpdatedAt(name: "updated_at")]
|
||||||
public ? Datetime $updatedAt;
|
public readonly ? Datetime $updatedAt;
|
||||||
|
|
||||||
#[Field\CreatedAt(readonly: true, name: "created_at")]
|
#[Field\CreatedAt(name: "created_at")]
|
||||||
public Datetime $createdAt;
|
public readonly Datetime $createdAt;
|
||||||
|
|
||||||
public bool $logged = false;
|
public bool $logged = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue