al_rahim
(Arahimit)
1
When I use in model
[b] public function primaryKey()
{
return array('VVERIFICATION_CODE');
}
[/b]
it is not saving and not throwing any error
but when it use
[b]public function primaryKey()
{
return 'VVERIFICATION_CODE';
}
[/b]it works fine.
why it is so?
mdomba
(Maurizio Domba Cerin)
2
As the doc say - [color=#222222][font=Arial, sans-serif][size=2]http://www.yiiframework.com/doc/api/1.1/CActiveRecord#getPrimaryKey-detail[/size][/font][/color]
[/size][/font][/color]
[color=#222222][font=Arial, sans-serif][size=2]
[/size][/font][/color]