diff --git a/src/Attribute/Property/Field/Id.php b/src/Attribute/Property/Field/Id.php index 7ab5bdd..e0b687c 100644 --- a/src/Attribute/Property/Field/Id.php +++ b/src/Attribute/Property/Field/Id.php @@ -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, ) {} } diff --git a/src/Common/EntityResolver.php b/src/Common/EntityResolver.php index 91cf874..f61a7b6 100644 --- a/src/Common/EntityResolver.php +++ b/src/Common/EntityResolver.php @@ -72,7 +72,6 @@ class EntityResolver { $key = strtolower($item->name); break; - case static::KEY_ENTITY_NAME: $key = $item->name; break;