Hi, It's a little unclear to me how your associations are set up. Does a Promotion hasMany Title,Body or do Title and Body hasMany Promotion? My suggestions assume the former.
> Here is the action: http://bin.cakephp.org/view/994290013 With saveAll, there's no need to manually enter the foreign key values, try: http://bin.cakephp.org/saved/46309 > Here is the view: http://bin.cakephp.org/view/1805109334 You're saving a promotion in your controller that hasMany Titles/Bodies, so you don't need foreign keys for body_id or title_id, the Body and Title tables would have a promotion_id column instead (they belong to the Promotion). http://bin.cakephp.org/saved/46311 If I'm wrong and it's Title or Body hasMany promotions, then you have to call saveAll on Title or Body instead (and adjust your views accordingly). hth Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
