New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autocompleter and symfony.2.7? #406
Comments
same here, using genemu/form-bundle v2.2.2 with symfony v2.7.3 |
Yes, I have the same issue. It's because Choice form has been completely refactored in Symfony 2.7 http://symfony.com/blog/new-in-symfony-2-7-choice-form-type-refactorization In class, Genemu\Bundle\FormBundle\Form\Core\DataTransformer, now, $choiceList is an instance of LegacyChoiceListAdapter this is a beginning of fix:
I took exemple on Sonata Admin bundle (Sonata\AdminBundle\Form\DataTransformer). regards, |
Please, if anyone find out how to solve this, let us know. I'm having the same problem with this bundle with Symfony 2.7.7. Regards. |
Should be closed @genemu in favor of #412 Current workaround by @aimeric: |
I get the following error when I implement genemu_jqueryautocompleter_entity, but no errors when I implement genemu_jqueryautocomplete_entity. The salesAgent and secondaryContact fields are identical definitions, and swapping fields makes no difference.
Catchable Fatal Error: Argument 1 passed to Genemu\Bundle\FormBundle\Form\Core\DataTransformer\ChoiceToJsonTransformer::__construct() must implement interface Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface, instance of Symfony\Component\Form\ChoiceList\LegacyChoiceListAdapter given, called in /srv/www/Toolkit/vendor/genemu/form-bundle/Genemu/Bundle/FormBundle/Form/JQuery/Type/AutocompleterType.php on line 46 and defined
using symfony v 2.7
genemu/form-bundle dev-master (2.3.x-dev)
The text was updated successfully, but these errors were encountered: