- WIP on Forms

This commit is contained in:
mcndave committed 2025-07-17 18:39:57 +00:00
1 parent 2dbcfbcb2e
commit 0e0f004bc1
3 files changed
+47 -4

No files matched your search

+1 -2
View File
@@ -66,10 +66,9 @@ abstract class Save implements \Picea\Ui\Method\FormInterface {
$field = $property->getAttribute(Field::class)->object;
if (! $field->readonly || ! $entity->isLoaded()) {
$apiField = $property->getAttribute(EntityField::class)->object ?? null;
if ($apiField) {
$var = $apiField->field ?: $key;
if ( isset($context->{$var}) ) {
if ($apiField->setterMethod) {
# Use a setter method