Unable to enable SoftDeleteable in Symfony2 - unrecognized filter options

I'm having problems activating the SoftDeleteable filter in the StofDoctrineExtensionsBundle . I configured it as described in the manual :

# app/config/config.yml
doctrine:
    orm:
        entity_managers:
            default:
                filters:
                    softdeleteable:
                        class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
                        enabled: true

But this is what I get:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "filters" under "doctrine.orm.entity_managers.default"

The launch bin/vendors updatedid not help. What could be wrong?

+5
source share
2 answers

First, use bin/vendors updateis a bad idea because it installs all providers in their latest versions. You should use only bin/vendors install.

Secondly, make sure you use the branch 1.0.x StofDoctrineExtensionsBundlebecause the branch is masternot compatible with Symfony 2.0.x.

+3

All Articles