tetranz / select2entity-bundle

A Symfony2 bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.
MIT License
218 stars 111 forks source link

In Symfony 4.3.2 Error: Unable to generate a URL for the named route ".en" as such route does not exist. #149

Open miguelamartinez75 opened 5 years ago

miguelamartinez75 commented 5 years ago

Simply installing and trying tu use Select2EntityType::class I get this error.

Thank you very much

tetranz commented 5 years ago

It sounds like you haven't set remote_route to your ajax route.

You need to set either remote_route to the route or remote_path to the direct URL.