Skip to content

deprecated choices_as_values in dynamic forms #8293

Closed
@tacman

Description

@tacman

The code explaining dynamic form building uses choices_as_values as an option:

https://symfony.com/doc/current/form/dynamic_form_modification.html#dynamic-generation-for-submitted-forms

               $form->add('position', EntityType::class, array(
                    'class' => 'AppBundle:Position',
                    'placeholder' => '',
                    'choices' => $positions,
                    'choices_as_values' => true,
                ));
            }

If that's not used anymore, it can be removed. If it is, can you update the documentation to reflect how to generate dynamic forms without using choices_as_values?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FormStatus: Needs ReviewactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions