I have two models
model_1
model_2
model_1
has many model_2
Now I want to association model_1 hasMany model_2 match with multiple column.
Let me give an example in raw query
select ...... from model_1 left join model_2 ON (model_1.f1 = model_2.f1 AND model_1.f2 = model_2.f2)
How can I do this in hasMany
association