title: Symfony2, PagerFanta results
body: <p>How can I take a result as an array from PagerFanta in Symfony2.1.1 ?</p>
  
  <pre><code>        $adapter = new \Pagerfanta\Adapter\DoctrineORMAdapter($query);
          $pager = new \Pagerfanta\Pagerfanta($adapter);
          $pager-&gt;setMaxPerPage(45);
          $data = $pager-&gt;getCurrentPageResults();
  </code></pre>
  
  <p>Results of <code>print_r($data);</code></p>
  
  <pre><code>ArrayIterator Object
  (
      [storage:ArrayIterator:private] =&gt; Array
          (
              [0] =&gt; Trucking\MainBundle\Entity\Sparcs Object
                  (
                      [id:Trucking\MainBundle\Entity\Sparcs:private] =&gt; 77940
                      [container:Trucking\MainBundle\Entity\Sparcs:private] =&gt; MEDUUUU
                      ...
                      ...
                      ...
  </code></pre>
  
  <p>I want to get results as <code>getQuery-&gt;getArrayResult();</code></p>