Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting CollectionType #171

Open
thisismzm opened this issue Oct 9, 2020 · 0 comments
Open

Supporting CollectionType #171

thisismzm opened this issue Oct 9, 2020 · 0 comments

Comments

@thisismzm
Copy link

thisismzm commented Oct 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant