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 110 forks source link

Crash on update #147

Closed Fl0ux closed 5 years ago

Fl0ux commented 5 years ago

select2entity

tetranz commented 5 years ago

I guess this is related to this https://github.com/tetranz/select2entity-bundle/pull/146 which changed to PSR-4. I was a little concerned about that and wondered if I should have called it version 3.

Try composer dump-autoload

If that doesn't work then temporarily you could go back to version 2.9.6. If more people report this then I may have to revert back to PSR-0.

Fl0ux commented 5 years ago

If I run composer dump-autoload and then composer update I have the same error.

rumours86 commented 5 years ago

i removed all cache - it fixed error

Fl0ux commented 5 years ago

./bin/console cache:clear seems to resolve the problem.

konradja100 commented 5 years ago

I guess this is related to this #146 which changed to PSR-4. I was a little concerned about that and wondered if I should have called it version 3.

Try composer dump-autoload

If that doesn't work then temporarily you could go back to version 2.9.6. If more people report this then I may have to revert back to PSR-0.

This error is still appearing, due to our autodeploy scripts we can't run composer dump-autoload, so it would be great to move back to PSR-0.