Create will only reset the Model object so that new records can be created. If you pass it a data array containing a primary key it will assume you want to update that record.
I have also seen suggestions for: $this->Parametername->create( $this->data['Parametername'] ); $this->Parametername->save(); On May 19, 3:46 pm, lucas <[email protected]> wrote: > solved! i don´t know if this is the best way, but assign false to the > ID worked: > $this->data['Parametername']['ParameternameID'] = false; > this is suppose that the create function do this, but it doesn´t for > some reason that i´m not able to see. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
