CAdvancedArBehavior (Advanced functions for Yii Active Record implementation)