Yii ActiveRecord extensions