Thursday, February 7, 2013

RE: Can not save two fields

Yeah I did all that, on nGinx but still restarted. I cleared the model cache and did the query on the new fields just to make sure it was finding the new and they came back from the query fine (empty) but the fields were found in the table.

 

I do debug() before the save and the data for the 2 fields are there, but for some reason beyond all who have suggested various ideas none seem to work.

 

Will try the validate false and see if that does anything even though I stripped out all validation rules for now.

 

Thanks,

 

Dave

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of crush
Sent: Thursday, February 07, 2013 4:36 AM
To: cake-php@googlegroups.com
Subject: Re: Can not save two fields

 

Make sure you delete the model caches, debug level 1 and maybe reload apache to force it to recheck the DB and see the new fields. That's gotten me a few times when it just wouldn't save something.

Also, just in case, you can do a $this->Model->save($this->request->data, array('validate'=>false) ); to make sure the validation is still not a problem.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: