Hello All,

I'm stuck and need a jump start here.  I have a form that collections
User model and Associate model data.  User like email, password and
Associate like street, city, state, etc... data.   I have a HABTM
relationship between User and Associate.  My question is how to make
the linkage work?  In this case I'm assuming that both the User and
Associate data enter is new.

$this->User->save($this->data);
$user_id = $this->User->getLastInsertId();

at this point do I just this:
$this->data['User']['id'] = $user_id;
$this->Associate->save($this->data);

Will the join table get popualted?

Thanks,
Brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to