I can’t see model properties when I inspect them with xdebug (using netbeans).
I believe this is because they are set by overriding the __set method.
How can I inspect my model properties - without going through every model and explicitly declaring them.
l.jurgs
(L Jurgs)
2
unfortunately xdebug wont do this automatically but you can setup a watch and see the value.
Say you you have a CActiveRecord in the variable $model and it has a column named $user_id you would just set a watch to $model->user_id.
There are a few feature requests asking for better support but this is the best you can do right now.
Thanks Luke. At least setting a watch does not involve editing the code to inspect them.