title: Convert Entity to array in Symfony
body: <p>I'm trying to get a multi-dimensional array from an Entity.</p>
  
  <p><a href="http://symfony.com/doc/current/components/serializer.html" rel="noreferrer">Symfony Serializer</a> can already convert to XML, JSON, YAML etc. but not to an array.</p>
  
  <p>I need to convert because I want have a clean <code>var_dump</code>. I now have entity with few connections and is totally unreadable.</p>
  
  <p>How can I achieve this?</p>