RE: issue with saving data in model

2011-03-28 Thread Krissy Masters
ops. -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Rishab Jain Sent: Monday, March 28, 2011 3:12 PM To: cake-php@googlegroups.com Subject: Re: issue with saving data in model Thanks Jeremy. It worked. If possible, do feed in your 2 cents on how t

Re: issue with saving data in model

2011-03-28 Thread Jeremy Burns | Class Outfit
There's no mystery (especially if you read the guide). As I said, if you don't include the create statement you are not creating a new record (the value of $this->id hasn't changed) therefore you stay on the first record you create or navigate to and only ever update. Jeremy Burns Class Outfit

Re: issue with saving data in model

2011-03-28 Thread Rishab Jain
Thanks Jeremy. It worked. If possible, do feed in your 2 cents on how this worked. regards, Rishab On 3/28/11, Jeremy Burns | Class Outfit wrote: > Add $this->create(); to your loop before you do the save. If not, you are > just updating the same record. > > Jeremy Burns > Class Outfit > > jere

Re: issue with saving data in model

2011-03-28 Thread Jeremy Burns | Class Outfit
Add $this->create(); to your loop before you do the save. If not, you are just updating the same record. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 28 Mar 2011, at 16:21, Rishab Jain wrote: > Hi All, > > I'm facing a very weird problem. I'm trying to s