symfony filter change behaviour from [field=value] to [field LIKE %value%]
问题 In my filter, a field's behaviour is to search in the DB table for a row that has the value of the field equal to the value provided in filtering form. I'd like to change its behavior to search in DB table for a row/rows that have field value matching to that provided in the form( %LIKE% ). I know it can be done by adding a addFieldnameColumnQuery method to the filter class but What I want to know is, is there another way? The field happens to be a foreign key and I want it to work like a