How can i configure a CActiveRecord model so that instead of "my_attribute" it will select "UNHEX(my_attribute)" ?
Similary i will need Yii to save the model using "HEX(my_attribute)". For the second part i was thinking of using "beforeSave". Is there also another approach ?