I just found that error has nothing to do.
The query is not updating the field which i am trying to.
It updates other fields.
$models = $this->Model->find('first', array('order' => array('RAND()')));
$this->Model->id = $models['Model']['id'];
$date = date('Y-m-d H:i:s');
$this->Model->saveField('fff',$date);
fff is fieldname and type datatime
It is not updating. I can get the id in my mail
I just changed the filedname and model name here. Is it good to share the
complete code of live site?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php