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