public function query(QueryInterface $query, ClassMetadata $metadata)
    {
        $field = $this->mapping['fieldname'];

        /** @var SelectQuery $query */
        foreach ($query->getFilters() as $filter) {
            /** @var Filter $filter */
            if ($filter->getKey() == $field) {
                $this->rewriteQueryFilterParameters($filter, $query, $field);
            }
        }

        return null;
    }
public function query(QueryInterface $query, ClassMetadata $metadata)
    {
        $field = $this->mapping['fieldname'];

        /** @var SelectQuery $query */
        foreach ($query->getFilters() as $filter) {
            /** @var Filter $filter */
            if ($filter->getKey() == $field) {
                $this->rewriteQueryFilterParameters($filter, $query, $field);
            }
        }

        return null;
    }
public function query ( QueryInterface $ query , ClassMetadata $ metadata ) { $ field = $ this -> mapping [ 'fieldname' ] ; /** @var SelectQuery $query */ foreach ( $ query -> getFilters ( ) as $ filter ) { /** @var Filter $filter */ if ( $ filter -> getKey ( ) == $ field ) { $ this -> rewriteQueryFilterParameters ( $ filter , $ query , $ field ) ; } } return null ; }
Repeater fields can allow filters on the value of a sub-field

For example the following queries:
'repeatfield', {'repeatstatus=1'}
'repeatfield', {'repeattitle=%Test%'}.

Because the search is actually on the join table, we replace the
expression to filter the join side rather than on the main side.

@param QueryInterface $query
@param ClassMetadata  $metadata

@return QueryBuilder|null
Repeater fields can allow filters on the value of a sub - field