- ID attribute is now readonly by default (since autoincremented)

This commit is contained in:
Dave Mc Nicoll 2025-02-03 19:56:35 +00:00
parent bd0d928f35
commit 0fd6889c6f
2 changed files with 1 additions and 2 deletions

View File

@ -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,
) {}
}

View File

@ -72,7 +72,6 @@ class EntityResolver {
$key = strtolower($item->name);
break;
case static::KEY_ENTITY_NAME:
$key = $item->name;
break;