public function filterAutocomplete(GetFilterConditionEvent $event): void
    {
        $expr = $event->getFilterQuery()->getExpr();
        $values = $event->getValues();

        if ('' !== $values['value'] && null !== $values['value']) {
            $paramName = str_replace('.', '_', $event->getField());
            $event->setCondition(
                $expr->eq($event->getField(), ':'.$paramName),
                [$paramName => $values['value']]
            );
        }
    }
public function filterAutocomplete(GetFilterConditionEvent $event): void
    {
        $expr = $event->getFilterQuery()->getExpr();
        $values = $event->getValues();

        if ('' !== $values['value'] && null !== $values['value']) {
            $paramName = str_replace('.', '_', $event->getField());
            $event->setCondition(
                $expr->eq($event->getField(), ':'.$paramName),
                [$paramName => $values['value']]
            );
        }
    }
public function filterAutocomplete ( GetFilterConditionEvent $ event ) : void { $ expr = $ event -> getFilterQuery ( ) -> getExpr ( ) ; $ values = $ event -> getValues ( ) ; if ( '' !== $ values [ 'value' ] && null !== $ values [ 'value' ] ) { $ paramName = str_replace ( '.' , '_' , $ event -> getField ( ) ) ; $ event -> setCondition ( $ expr -> eq ( $ event -> getField ( ) , ':' . $ paramName ) , [ $ paramName => $ values [ 'value' ] ] ) ; } }
Apply a filter for a filter_autcomplete type.
This method should work whih both ORM and DBAL query builder.

@param GetFilterConditionEvent $event
Apply a filter for a filter_autcomplete type . This method should work whih both ORM and DBAL query builder .