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?
You can just do it yourself, it is not hard, saving you from installing another bundle:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/filters.html
First, using
bin/vendors update
is a bad idea because it sets all the vendors to their latest versions. You should usebin/vendors install
only.Second, make sure you are using the
1.0.x
branch ofStofDoctrineExtensionsBundle
, because themaster
branch is not compatible with Symfony2.0.x
.