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

This commit is contained in:
Dave Mc Nicoll committed 2025-02-03 19:56:35 +00:00
1 parent bd0d928f35
commit fe7783356f
2 files changed
+1 -2

No files matched your search

+1 -1
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,
) {}
}
-1
View File
@@ -72,7 +72,6 @@ class EntityResolver {
$key = strtolower($item->name);
break;
case static::KEY_ENTITY_NAME:
$key = $item->name;
break;