Hi all,
I want to set a composite primary key for my table. I have added the following in my models-
class Event extends CActiveRecord
{
public function primaryKey()
{
return array(‘name’,‘contact’);
}
}
But this does not turn out to be helpful.