Btw, you also have saveAll(), which allows to save multiple records at once.
On Sep 30, 11:50 am, teknoid <[EMAIL PROTECTED]> wrote: > you need to call $this->Post->create(); before the second save, that > is if you are getting an update instead of an insert, but you've never > specified what problem you are actually having. > > On Sep 30, 11:29 am, rocket <[EMAIL PROTECTED]> wrote: > > > I am trying to save an entry twice after getting processed. > > > Ideally the query would look like > > > $this->Post->save($this->data()); // the first save, so in the mySQL > > db it will have id 1 > > $this->Post->save($this->data()); // a second save, so another row > > with id 2 > > > However it doens't seem to work correctly. > > Does anyone knwo what I'm doing wrong? > > > also, i'm on 1.1x > > > thanks > > rocket --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
