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
It has an issue when I use
CollectionTypeto generate collection ofSelect2Entityinstead of usingmultiple=true.For
CollectionTypeyou should get$form->get($request->get('field_name'))->getConfig()->getOptions()['entry_options']at the following line:select2entity-bundle/Service/AutocompleteService.php
Line 43 in 66f5154
On
select2entity.jsyou should fix generatingfield_nametoo. The following pull request solved this: #119