And is "key" unique, but not validated against? Since there are no IDs included, saveAll() will try to create the entries which could be why it fails. Try copying the generated queries from the SQL log and running them from phpMyAdmin for more detailed error messages.
On Nov 2, 6:16 pm, red <[email protected]> wrote: > Oh, the table structure is: > settings(id, key, value, created, modified) > > key & value are of course VARCHARS. > > On 2 Lis, 11:04, 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 -~----------~----~----~----~------~----~------~--~---
