I have a form with the following fields:
$builder ->add('title', 'text') ->add('body', 'textarea') ->add('tags', 'entity', [ 'class' => 'AppBundle\Entity\Tag', 'choice_label' => 'name', 'expanded' => false, 'multiple' => true, ]);
User can select multiple tags. Everything works perfectly. But now that the number of tags is becoming very large (over 20,000 tags), page rendering is becoming very slow because the entity type loads all the tags in selectbox. So I implement jQuery autocomplete selectbox to prevent the whole entity from loading, but when I submit the form, the validator still loads all the tags for validation! How can I solve this validation problem? Thanks!
source share