I was so happy. I finally figured out how to make saveAll work with my HABTM relationship so I figured adding a hasMany would be a piece of cake. I have a little practice data structure set up to test it out.
$save[1]['Constoptvalue']['device_id'] = 16; $save[1]['Constoptvalue']['constopt_id'] = 1; $save[1]['Constoptvalue']['valid'] = 1; $save[1]['Layer'][0]['layer_id']=4; $save[1]['Layer'][1]['layer_id']=2; $save[1]['Layer'][2]['layer_id']=3; This works brilliantly. So then I add in my hasMany data: $save[1]['Cotest'][0]['symbol']='buggers'; And do my saveall: $this->Constoptvalue->saveAll($save); Everything works, except Cotest. I can tell the relationship is defined well, I get the proper data when I read my Constoptvalue structure. Any ideas? Darn, I thought I had this nailed finally. Thanks all. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---