It doesn't use associations in this case. I only want it to save multiple records to one table.
Any ideas - anyone? On Feb 21, 6:15 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > it might also help to show us the way you have the models associated. > Have you looked at the book section on associations and saving > data?http://book.cakephp.org/view/66/models#associations-78 > > Sam D > > On Thu, Feb 21, 2008 at 5:41 AM, Doug @ Straw Dogs > > > > <[EMAIL PROTECTED]> wrote: > > > I've been banging my head against a wall trying to get $this->Model- > > >saveAll() working. I'm hoping someone has the answers. > > > I've tried formating the data in the following ways: > > > Array > > ( > > [Customer] => Array > > ( > > [site_url] => Array > > ( > > [0] =>http://www.barclays.co.uk/mortgages/ > > [1] > > =>http://www.fool.co.uk/mortgages/compare-mortgages.aspx > > [2] =>http://www.tdcanadatrust.com/mortgages/index.jsp > > ) > > ) > > ) > > > Array > > ( > > [Customer] => Array > > ( > > [0] => Array > > ( > > [site_url] =>http://www.barclays.co.uk/mortgages/ > > ) > > [1] => Array > > ( > > [site_url] > > =>http://www.fool.co.uk/mortgages/compare-mortgages.aspx > > ) > > [2] => Array > > ( > > [site_url] > > =>http://www.tdcanadatrust.com/mortgages/index.jsp > > ) > > ) > > ) > > > Neithewr of these array structures works. Am I missing something? > > > The relevant part of the controller is here: > > > $this->Customer->create(); > > $this->Customer->saveAll($this->data); > > -- > -- > (the old fart) the advice is free, the lack of crankiness will cost you > > - its a fine line between a real question and an idiot > > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/http://blog.samdevore.com/cakephp-pages/i-cant-bake/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
