Replace var_dump() with the debug method dump() provided by Doctrine Common.
\Doctrine\Common\Util\Debug::dump($user);
It works for single objects and Doctrine collections and should prevent browser displaying issues you are having.
More Related Contents:
- How can I get useful error messages in PHP?
- Showing all errors and warnings [duplicate]
- PHP – Debugging Curl
- How do you debug PHP scripts? [closed]
- How to debug in WooCommerce 3+
- Reference – What does this error mean in PHP?
- How can I get useful error messages in PHP?
- How can I get useful error messages in PHP?
- How to get name of calling function/method in PHP? [duplicate]
- Is there a built-in way to get all of the changed/updated fields in a Doctrine 2 entity
- Why I am suddenly getting a “Typed property must not be accessed before initialization” error when introducing properties type hints?
- How to do left join in Doctrine?
- How can I write to the console in PHP?
- Default value in Doctrine
- Doctrine 2 and Many-to-many link table with an extra field
- 500 internal server error, how to debug [duplicate]
- How to select randomly with doctrine
- Should I use EAV model?
- Select entries between dates in doctrine 2
- How to re-save the entity as another row in Doctrine 2
- Subquery in doctrine2 notIN Function
- How to set up entity (doctrine) for database view in Symfony 2
- How to get a one-dimensional scalar array as a doctrine dql query result?
- How to use a findBy method with comparative criteria
- Symfony 2.0 getting service inside entity
- “Class XXX is not a valid entity or mapped super class” after moving the class in the filesystem
- Can I access discriminator field from php in doctrine2?
- Query on a many-to-many relationship using Doctrine with Symfony2
- Doctrine2 association mapping with conditions
- How can I use DATE() in Doctrine 2 DQL?