Function prepareToSaveAll that takes some array and returns converted.
On 3 Lis, 04:25, "Dr. Loboto" <drlob...@gmail.com> wrote:
> 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 <mbu...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment