Have you tried doing a pr($this->data) or pr($data) before you attempt to save to the db?
I've seen insert silently fail because the data wasn't where the model expected it to be. D On Jan 26, 7:04 am, "Flexewebs" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I am trying to insert an array of order data into a 'Order' model. The > array is in format ready for save(), i.e. $data['Order']['variable1'], > $data['Order']['variable2'], $data['Order']['variable3'] ... > > When I execute $this->Order->save($data);, or even > $this->Order->save($data['Order']); nothing happens. I get no errors > and also in the debug mode 3 it shows no INSERT statement for the SQL, > so I haven't got a clue about what is happening in the background. > > Please note: > I am setting the $data['Order'] array from session variables I > collected through order process, as opposed to getting them from $html > form helpers directly. Also, the $data['Order']['id'] is not set to > anything. > > Please help if you know why I am getting this really weird problem. > > Thanks, > > Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
