Symfony <2.6
You can use \Doctrine\Common\Util\Debug::dump($variable, $depth); , which displays the conclusion of the doctrine without proxy information.
Symfony> 2.6
If you are using symfony 2.6 or more, I highly recommend that you use dump() . It shows a well-formed and colored output, and you can dynamically spend / hide lines. 
goto Dec 6 '16 at 7:37 2016-12-06 07:37
source share