I’m having problems trying to activate the SoftDeleteable filter in 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"
Running bin/vendors update didn’t help. What could be wrong?
First, using
bin/vendors updateis a bad idea because it sets all the vendors to their latest versions. You should usebin/vendors installonly.Second, make sure you are using the
1.0.xbranch ofStofDoctrineExtensionsBundle, because themasterbranch is not compatible with Symfony2.0.x.