Closed sunviwo closed 10 years ago
Fixed by installing SonataCoreBundle.
Installed the SonataCoreBundle, error still occurs.
Error: Class 'Sonata\AdminBundle\Form\Type\BooleanType' not found
Triggered by listview -> buildPager. Tries to use a boolean type in the DatagridMapper -> fails.
please update your bundles.
"sonata-project/doctrine-orm-admin-bundle": "~2.2", "sonata-project/media-bundle": "~2.2",
AppKernel: SonataMediaBundle, SonataCacheBundle, SonataEasyExtendsBundle, ApplicationSonataMediaBundle, SonataBlockBundle, SonatajQueryBundle, SonataAdminBundle, SonataDoctrineORMAdminBundle, SonataIntlBundle, SonataCoreBundle
sonata-project/admin-bundle@2.2.9 orm-admin-bundle@2.2.5 media-bundle@2.2.5
Thats working:
"sonata-project/admin-bundle": "2.2.*@dev",
"sonata-project/media-bundle": "2.2.*@dev",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*@dev",
In live projects, i'd like to use stable versions... Is there a stable combination?
once the migration to the core bundle will be over, we will release stable version of each bundle
But you moved the BooleanType already from sonata admin bundle, and tagged it with 2.2.9 instead of 3.0.0? That was a BC, isnt it?
@mikemeier in theory, you are right. However Sonata's versionning scheme does not respect this. 2.2
means the code is working with symfony2.2 and upper. Which of course, it is far from an ideal situation.
We cannot maintain too many branches, so just upgrade your code ...
Really far from an ideal situation.
So I only dont understand why you already tagged the sonata admin bundle, and not the doctrine-orm-admin-bundle?
The "sonata-project/doctrine-orm-admin-bundle": "2.2.5" should work I guess
I've also only been able to use
"sonata-project/admin-bundle": "2.2.*@dev",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*@dev",
I'm getting the following error when trying to get the list views of medias and galleries in the Admin: FatalErrorException: Error: Class 'Sonata\CoreBundle\Form\Type\BooleanType' not found in C:\wamp\www\Jjtossa\vendor\sonata-project\doctrine-orm-admin-bundle\Sonata\DoctrineORMAdminBundle\Filter\BooleanFilter.php line 45 No idea how to fix it. Thanks for any help