Extended functionality for Yii active records.