Symfony3 Tetranz/select2 - remote_route
Symfony3 Tetranz/select2 - remote_route I'm trying to use the select2entity-bundle for my project to implement auto-complete. When using the builder, the specification is as follows : $builder ->add('country', Select2EntityType::class, [ 'multiple' => true, 'remote_route' => 'tetranz_test_default_countryquery', 'class' => 'TetranzTestBundleEntityCountry', 'primary_key' => 'id', 'text_property' => 'name', 'minimum_input_length' => 2, 'page_limit' => 10, 'allow_clear' => true, 'delay' => 250, 'cache' => true, 'cache_timeout' => 60000, // if 'cache' is true 'language' => 'en', 'placeholder' => 'Select a country', ...