title: Convert the result of a query to an array of arrays
body: <pre><code>$shops = $this-&gt;em-&gt;getRepository('models\Shop')-&gt;findAll();
  </code></pre>
  
  <p>Gives my an array with entities but I need the entity as array.</p>
  
  <p>How do I convert an entity to an array?</p>