The CActiveRecordInheritance extension adds up table inheritance to Yii AR models