Saturday, October 27, 2007

Cake 1.2.5875 pre-beta some bug with saveField

I have some trouble with Model->saveField('title',$title);

when I switch project to Cake 1.2.5875 pre-beta, suddenly cake set to 0,null,'' all other fields in my table ;-(

But daphonz say, how to fight with this bug:

$saveData = array('Category'=>array('id'=>$category['ParentCategory']['id'],'options'=>serialize($options)));

$this->Image->Category->save($saveData,false,array('Category.options'));


Not so beauty, but it's work fine.

Good luck, pals!

1 Comments:

Blogger Manish Sharma said...

This comment has been removed by a blog administrator.

4:24 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home