I think you will have to set your model's id manually like this:
function edit($id){
if (empty($this->data)) {
$this->product->id = $id;
$this->data = $this->product->read();
}else{
$this->product->id = $this->data['product']['id'];
if($this->product->save($this->data['product'])){
> $this->Session->setFlash('Updated Sucessfully');
> $this->redirect('/product/account_settings');
>
> }else{
> $this->Session->setFlash('Please correct the
> errors');
> }
> }
>
> }
>
That should fix it.
Cheers,
--
Matias Lespiau
http://www.gignus.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---