Simple class to use transaction in Yii framework