title: How to get a Doctrine 2 result as an associative array?
body: <p>I want to get the results in array for this code:</p>
  
  <pre><code> $person = $em-&gt;find('Person', 2);
  </code></pre>
  
  <p>I am using doctrine 2.  I want the above result in array form. .</p>
  
  <p>PHP version 5.4 </p>