[DDC-2107] Debug::dump lists the wrong access level for some attributes Created: 29/Oct/12 Updated: 09/Feb/13 Resolved: 09/Feb/13
|Project:||Doctrine 2 - ORM|
|Reporter:||George Zankevich||Assignee:||Benjamin Eberlei|
\Doctrine\Common\Util\Debug::dump() shows the wrong access level for some attributes. The below code reproduces the bug:
\Doctrine\ORM\Query\Expr\Select and \Doctrine\ORM\Query\Expr\Base define a bunch of protected class attributes, however, the Dump method fails to indicate their correct access level.
|Comment by Alexander [ 09/Feb/13 ]|
This is not a bug. It's the way the dumper works. The functionality of the dumper lies within limiting the depth of the dumping. It does this by reconstructing the object in an `stdClass` object. If you have xdebug installed this will show all the properties as public.
|Comment by Marco Pivetta [ 09/Feb/13 ]|
This is not a bug, but a limitation. Since values are copied over from a real instance into an `stdClass`, we cannot reproduce the original object's property visibility