I’m not using foreign key relationship in any of my tables. The related objects in relations() method of CActiveRecord are defined as ‘varName’=>array(‘relationType’, ‘className’, ‘foreign_key’, …additional options). Is foreign key element required or optional ?