I found code here that works great for this problem
http://bakery.cakephp.org/articles/view/alternative-methods-for-working-with-hasandbelongstomany-associations
On Sep 17, 1:57 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I have:
>
> Model User
> Model Profile
>
> Profile belongs to
I have:
Model User
Model Profile
Profile belongs to User
User hasOne Profile
In addition, I want to let users save a list of their favorite
profiles other than their own, so I added a habtm relationship to User
model, with a join table user_favorites holding user_id and profile_id
It seems to