This may be a yii extension, someday.