If you are wanting help with your code it is always best to share your
REAL code whever possible (obviously obfuscate sensitive data such as
login credentials) so we can see your true model names and
associations etc.  It;s always harder to diagnose problems with
fictional model names!

On Aug 14, 2:09 pm, Prabha vathi <[email protected]> wrote:
> 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

Reply via email to