> I need help in using saveAll() method for editing, I have a form that > needs to save data to 2 different models, Subscriber and Individual > subscriber. But everytime i edit data, a new data is being created > instead. The following is my codes: did you put a hidden field with the id in the view of edit? something like: echo $form->input('id', array('type'=>'hidden'));
if you don't send the id, cakephp believe that you want add a new row.. ( http://book.cakephp.org/view/340/Editing-Posts ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---