- ID attribute is now readonly by default (since autoincremented)
This commit is contained in:
parent
bd0d928f35
commit
0fd6889c6f
@ -16,6 +16,6 @@ class Id extends \Ulmus\Attribute\Property\Field {
|
|||||||
],
|
],
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = true,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,6 @@ class EntityResolver {
|
|||||||
$key = strtolower($item->name);
|
$key = strtolower($item->name);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case static::KEY_ENTITY_NAME:
|
case static::KEY_ENTITY_NAME:
|
||||||
$key = $item->name;
|
$key = $item->name;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user