Saving Associated Data that is an Array

2006-12-13 Thread Dave Rogers
I have a report form that has a list of people who attended an event. When I try to save the attendees, the first one is added to the db, the rest attempt to update with the id of the event. here is an idea of the data: $this-data['event']=array( 'title'='title of event',

Re: Saving Associated Data that is an Array

2006-12-13 Thread Samuel DeVore
$this-ModelName-create(); before your save. On 12/13/06, Dave Rogers [EMAIL PROTECTED] wrote: I have a report form that has a list of people who attended an event. When I try to save the attendees, the first one is added to the db, the rest attempt to update with the id of the event. here