I have around 40 entities and many bidirectional relationships. Whenever i use var_dump($user) or any entity my browser gets loaded with too much data of arrays and variable
well formatted :
echo '<pre>'; \Doctrine\Common\Util\Debug::dump($user, $recurciveLevelToDisplay); echo '</pre>';
Just use echo serialize($user);
Simple and easy example.
var_dump(serialize($Object));