you need to set the id of the record you are saving explicitly eg.
$this->model->id = $this->data['model']['id']; // sets the id so cake knows you are replacing and not creating a new one $this->model->save($this->data); On Aug 23, 7:52 pm, PardeepSharma <[EMAIL PROTECTED]> wrote: > I have form of addlisting in which I am adding the Real estate list > and when I am editing this page, happening is that the I am not > editing the file input field and click submit but it replaces file > input values to null so how I did stop to not save null as store its > dstabase value which is loaded when form loads... Any solution? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
