I think you must convert array structure before save call. saveAll function determine the way must be used for actual save before beforeSave is called. So saveAll thinks that it should save one record of one structure, but then you change it to many records of other structure. So save fails. Make your own mySave method, convert array there and then call saveAll.
On Nov 2, 4:04 pm, red <[email protected]> wrote: > Hi, > I've pasted code here:http://bin.cakephp.org/saved/52122 > > The problem is that the saveAll() doesn't work at all. Ok, it's > invoked and $this->data is modified, but saveAll() does not save any > records and debug($this->data) after success of saveAll() shows the > old structure of $this->data. What I'm doing wrong? > > Please help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
