0

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 ?

  • try 'ModelName.field_name' => ... – Salines Apr 11 '16 at 09:17
  • Possible duplicate of [How to filter by conditions for associated models?](http://stackoverflow.com/questions/26799094/how-to-filter-by-conditions-for-associated-models) – ndm Apr 11 '16 at 13:08

0 Answers0