If Event belongsTo User then you need a user_id field in the Event
table

If you have a two part form which first creates an Event then creates
a User after submitting the Event part of the form you could then pass
$data['Event']['id'] to the User form (will be available after saving
the Event data) meaning you can run $this->Event->saveField('user_id',
$data['Event']['id']) after saving $this->Event->User (Can all be done
from within the Event controller).

Are there many fields to these two forms though?  Would it not be
better to have it as one form and then use saveAll()?
--~--~---------~--~----~------------~-------~--~----~
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