I need help to differentiate between 0 and NULL values on Yii 1.1.8 models. Apparently, when an integer field in mysql is set to NULL, Yii returns 0 instead. I wonder if Yii converts the NULL value to 0 automatically? This should not be the case as 0 is not necessarily NULL. Please help.