for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
* This file is part of the Sonata Project package.
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
use Sonata\AdminBundle\Filter\Filter as BaseFilter;
abstract class Filter extends BaseFilter
protected $active = false;
public function apply($queryBuilder, $value): void
$this->value = $value;
$field = $this->getParentAssociationMappings() ? $this->getName() : $this->getFieldName();
$this->filter($queryBuilder, null, $field, $value);
public function isActive()