->add('skills', EntityType::class, array(
'class' => ProfileSkills::class,
'query_builder' => function (EntityRepository $er) {
return $er->createQueryBuilder('s')
->orderBy('s.id', 'ASC');
},
'choice_label' => 'name',
'label' => 'Research keywords',
'attr' => array(
'placeholder' => 'Please add your research keywords one by one.',
)
))
For now tihis is working as huge select field. I need to make it smaller by using autocomplete.
Is there is some way to use data from this EntityType as value for jQuery autocomplete or maybe is some option to do on symfony side?