I am adding a filter for Doctrine 2 in a Symfony 2 project. Following the document I have created the filter class and put it under MyVendor\MyProjectBundle\Filter\MyFilter.php. What is the better way to do the configuration ane disabling/enabling bits as in the document? I do not know how to access the config object for Doctrine 2 in Symfony. Also if the filter is to be enabled globally, are there ways to do this without changingi every controller?
Search for the filter
word in the Doctrine bundle configuration reference.
The example from the doc looks like this:
doctrine: orm: filters: myFilter: class: MyVendor\MyBundle\Filters\MyFilter enabled: true parameters: myParameter: myValue mySecondParameter: mySecondValue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With