Query conditions on related tables in CakePHP
15 January 2009
Today I came across an interesting problem. When using the recursive features of CakePHP to return a results tree it isn’t possible to refine the results by a condition on the related table when it is a one to many relationship. Take the follow example:
I have 4 tables:
User
[...]