title: getResult() method Doctrine
body: <p>What is the format of the array returned using the getResult() method in the following example, using Doctrine and Symfony2:</p>
  
  <pre><code>$query = $this-&gt;_em-&gt;createQuery('SELECT p.id, p.nameProduct FROM ArkiglassProductBundle:Product p');
          return $query-&gt;getResult();
  </code></pre>
  
  <p>And I would like to know how to access each case and print every row.</p>