- WIP on Forms
This commit is contained in:
1 parent
2dbcfbcb2e
commit
0e0f004bc1
3 files changed
+47
-4
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user