isset and empty calls on model attributes


if (!empty($user->about)) {

    echo CHtml::encode($user->about);



What I expected:

The above is some code that I had in my view.  What I expect it to do is display the user's info if there is any.

What happened:

the empty($user->about) always returns true, whether there is data in there or not.

I think the reason for this is that Yii uses the magic functions __set and __get.

A solution (I think):

implant the magic function __isset() also

Could you please create a ticket for this? Thanks!

Yep, done.