I need to make a complex filter that implies to apply a function over a model property.
The equivalent SQL query is:
SELECT * FROM myModel_table t WHERE abs(t.field1 - :binding_value) <= 50
where binding_value is a numeric received from the client.
Is there any way to define a field lookup using a funcion? Or do I have to directly use the raw sql?
Thank you.