I have to make join and then pass conditions if there is hasMany associated Model.
It gives unknown field in condition, if we pass condition on hasMany associated Model fields. Is there a way to pass conditions on hasMany associated Model in cakePHP ?