Skip to content

Commit

Permalink
bug #5742 [BUG] Fix property_name with CollectionField and Associatio…
Browse files Browse the repository at this point in the history
…n in Entity (john-dufrene-dev)

This PR was merged into the 4.x branch.

Discussion
----------

[BUG] Fix property_name with CollectionField and Association in Entity

This PR fix for #5741

Commits
-------

4c247d4 fix property_name with CollectionField and Association in Entity
  • Loading branch information
javiereguiluz committed May 2, 2023
2 parents d188609 + 4c247d4 commit 70e4677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field/Configurator/CollectionConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $c
$field->setFormTypeOptionIfNotSet('allow_delete', $field->getCustomOptions()->get(CollectionField::OPTION_ALLOW_DELETE));
$field->setFormTypeOptionIfNotSet('by_reference', false);
$field->setFormTypeOptionIfNotSet('delete_empty', true);
$field->setFormTypeOptionIfNotSet('prototype_name', '__'.$field->getProperty().'name__');
$field->setFormTypeOptionIfNotSet('prototype_name', '__'.u($field->getProperty())->replace('.', '_').'name__');

// TODO: check why this label (hidden by default) is not working properly
// (generated values are always the same for all elements)
Expand Down

0 comments on commit 70e4677

Please sign in to comment.