Source: http://stackoverflow.com/questions/11902099/too-much-data-with-var-dump-in-symfony2-doctrine2
\Doctrine\Common\Util\Debug::dump($user);