Thank you so much for replying! Commented $this->Resource->create();
Still doesnt work! On Jul 2, 7:25 pm, "Paul" <[email protected]> wrote: > Don't call Model::create if your saving an existing record...? > > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > > Of sajjan > Sent: Friday, 3 July 2009 1:38 p.m. > To: CakePHP > Subject: Save method not working,working only on inserts > > Hi, > > I have read a lot of posts on this topic but am not able solve my > problem.I am new to to CakePHP so please help! > > My model name is Reource. > controller code: > { > : > : > $this->data['Resource']['ID']=1000 // this is a valid ID in the table > of an existing record,i have hardcoded for now to isolate the problem > : > $this->Resource->create(); > $this->Resource->save($this->data); > : > : > } > > This works if, instead of 1000 i give a new ID it inserts perfectly. > > Please help! > Thanks in advance! > Sajjan Sarkar > > __________ Information from ESET NOD32 Antivirus, version of virus signature > database 4211 (20090702) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > __________ Information from ESET NOD32 Antivirus, version of virus signature > database 4211 (20090702) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.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 -~----------~----~----~----~------~----~------~--~---
