Is there a way to create inheritance in Yii?
I want to do the following:
Create an abstract class called 'Media' that extends CActiveRecord,
Create two subclasses, 'Video' and 'Photo'.
Store all of the information in the same table with a column 'class' which records what class type a record is for.
Make Yii automatically return Active Records cast as objects of the correct class.
Is this possible with Yii? If not, how can I achieve something similar?