Open aimeric opened 8 years ago
Any idea ? i'm still stack :(
Have anyone solved this issue? I'm stuck here too! I'm using Symfony 2.7.7
Hi lealceldeiro, i didn't found a way to solved my issue. if you want to pull your data from the database this is what you can do : ->add('lealceldeiro', 'genemu_jqueryselect2_entity', array( 'class' => 'MylealceldeiroBundle:lealceldeiro', 'property' => 'lealceldeiro', 'query_builder' => function(EntityRepository $er) { return $er->createQueryBuilder('u') ->groupBy('u.code') ->orderBy('u.lealceldeirot', 'ASC'); },) )
i'm using query_builder to speed up the research because i have more than 10.000 items. then in your twig file you can use select2 it will help you to have a better interface to search an element in your dropdown. https://select2.github.io/
aimeric thanks for the reaply. I've decided to try something different. Here is something related to what I did (http://stackoverflow.com/questions/32334289/adding-jquery-autocomplete-in-symfony2-entity-field) I don't know yet if this is a better or a worse solution regarding to performance, but at least I got it working properly. I'll try what you told me later.
Issue allready exists. Also in symfony 2.8.x.
Hi,
I have the following error when I implement genemu_jqueryautocompleter_entity.
I fixed the error by editing: LegacyChoiceListAdapter
but now i got a new error:
this is my PostType.php
Thank you :)