Re: How do I filter deep associations?

2011-03-11 Thread Dustin Boston
There's an interesting dialog going on about this topic on Stack Overflow. Please contribute. I'm trying to work out a fairly definitive solution for this common problem. Thanks!! -- Our newest site for

How do I filter deep associations?

2011-03-11 Thread Dustin Boston
I have the following tables: binders, docs, users, docs_users. Doc belongsTo Binder, Doc hasAndBelongsToMany User. I want to get binders and their associated docs for the user that is currently logged in (the associated user_id in the docs_users table). I have tried Containable and find('all') wi