sonata-project/SonataAdminBundle — Issue #525: Twig Exception during the rendering of the list views
Author: paztek
Created: 2012-01-29 19:18:14+00:00
State: open

I get

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 2 passed to Symfony\Bridge\Twig\Extension\FormExtension::isChoiceSelected() must be an instance of Symfony\Component\Form\Extension\Core\View\ChoiceView, integer given, called in /my_app/app/cache/dev/twig/d6/f5/35c6737e5a57a59614dc07224972.php on line 326 and defined in /my_app/vendor/symfony/src/Symfony/Bridge/Twig/Extension/FormExtension.php line 99") in SonataAdminBundle:Form:silex_form_div_layout.html.twig at line 37.

whenever I try to access the list of any of my entities managed by Sonata Admin.

I think it has something to do with the last version of Twig because it worked before I updated all my bundles.
I think the variable "choice" on line 37 has to be an object instead of a simple integer. In some Symfony core templates, the "choice" is an object and the integer is accessed with choice.value.