manage PK in Yii Framework's AR

For some conditons MySQL table will use combine PK, can use the follow way to tell Yii's AR how to return correct PK values. 

 
public function primaryKey(){
	// single PK
	// direct return pk attributes name
	return 'id';


	// composite primaryKey
	//return an array with Attributes's names
	return array('AttributesName1', 'AttributesName2');
}