Behavior for Yii CActiveRecord