How to filter translatable field

ndlinh - 5 months ago

I have a model with field "title" which is translatable. I want to query all records that have "title" like something. How can I do this. I know I can manual join translation table to do this but I think there is another way. Please help.

ryanthompson - 5 months ago

It should search the active locale by default:

Note the joining in there done for you and the app.locale being used in the where clause.