Skip to content

Supporting CollectionType #171

@thisismzm

Description

@thisismzm

It has an issue when I use CollectionType to generate collection of Select2Entity instead of using multiple=true.
For CollectionType you should get $form->get($request->get('field_name'))->getConfig()->getOptions()['entry_options'] at the following line:

$fieldOptions = $form->get($request->get('field_name'))->getConfig()->getOptions();

On select2entity.js you should fix generating field_name too. The following pull request solved this: #119

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions