I occured an issue, This is my talbe create info :
CREATE TABLE
hr(uidint(10) unsigned NOT NULL ,cidint(10) unsigned DEFAULT '0' ,company_statustinyint(1) DEFAULT '0' , PRIMARY KEY (uid), KEYidx_cid(cid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
I want to update the 'cid' column in this table Here is my update:
$hr = Hr::findFisrt(10); $hr->save(array('cid' => 13, 'company_status' => 1), array('cid', 'company_status'));
Only company_status column will be update . cid column not changed.
Should I do any other setting for INDEX KEY column in model?