Each AR relationship is created with a corresponding class.
const BELONGS_TO='CBelongsToRelation'; const HAS_ONE='CHasOneRelation'; const HAS_MANY='CHasManyRelation'; const MANY_MANY='CManyManyRelation'; const STAT='CStatRelation';
These classes extend the CActiveRelation "CBaseActiveRelation" CComponent.
You might be able to create your own AR relationships with a custom class extending CActiveRelation.
source share