for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* 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.
*/
namespace Sonata\DoctrineMongoDBAdminBundle\Filter;
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()
return $this->active;