On Sep 10, 9:42 pm, nerohc <[EMAIL PROTECTED]> wrote: <snip> > $this->data['Media']['Media'] = 15; That's supposed to be an array of all values to which the RateRequest is associated. The delete is because before saving the new habtm associations, cake will delete the old ones (otherwise it would be impossible to remove an association), there is no insert because (educated guess) 15 isn't an array. make it $this->data['Media'] ['Media'][] if you want to hardcode it like that. Or use bake to get skeletal code that works. hth, AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
