Re: saving habtm without saving primary model

2007-09-17 Thread [EMAIL PROTECTED]
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

saving habtm without saving primary model

2007-09-17 Thread [EMAIL PROTECTED]
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