On Mon, Apr 13, 2009 at 12:41 AM, Miles J <[email protected]> wrote: > > You need to set the data before hand. > > $this->Customer->set($this->data); > > Then validate it: > > $this->Customer->validates(); > > But you dont even need to do that, save() does it automatically. > > $this->Customer->save($this->data);
It's not necessary to call "create" either, unless you're going to insert many records at a time, for instance, in a loop. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
