> Or call $this->Event->create() before the nextsave.
> On Nov 4, 10:41 pm, hunny <saurabh85maha...@gmail.com> wrote:
> > After the call $this->Event->save($new_event_data2);
> > Write the following line
> > $this->Event->id = null;
> > It should work fine.
> > On Nov 5, 4:21 am, GoalTribe <ro...@goaltribe.com> wrote:
> > > Why doesn'tsave() workmultipletimesin the same action?
> > > I have an action that my cron job calls to see which members need
> > > reminders.
> > > It loops through all members to check. I would like to add an entry
> > > into my event log table for each member that gets a reminder. However,
> > > only the first call tosave() seems to work.
> > > What am I doing wrong?
> > > Here is my code:
> > > $new_event_data2 = array(
> > > 'Event' => array(
> > > 'user_id' => $fbid,
> > > 'event' => "email",
> > > )
> > > );
> > > $this->Event->save($new_event_data2);
> > > Thanks so much for your help!
> > > This is for a Facebook App called "The 30 Day Fitness Challenge"
> > > running on CakePHP. See it live here:http://www.facebook.com/apps/application.php?id=143111604747