To clarify, if all you want to do is edit a Profile, you only need the user_id in $this->data[Profile']
If that's good to go, just do $this->User->Profile->save($this->data); On Fri, Jan 16, 2009 at 1:08 AM, brian <[email protected]> wrote: > Because the assumption is that a User is being created in the same > action. Read back to the sentence before the one you quoted. "... that > handles the saving of a new User and a related Profile." > > On Thu, Jan 15, 2009 at 8:15 PM, Delirium tremens <[email protected]> wrote: >> >> "The example action shown below will assume that you've POSTed enough >> data (using the FormHelper) to create a single User and a single >> Profile." >> >> http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo >> >> >> POSTed enough data to save a single User and a single Profile??? >> >> If I have >> - email and password fields for user >> - title and body fields for post >> >> Why do I need to post not just user ID, but also user email and user >> password to save profile title and profile body??? >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
