title: ZF2 unable to select all rows in tablegateway method
body: <p>I m just new to ZF2 and using the following function.</p>
  
  <pre><code>public function fetchAll()
      {
          $resultSet = $this-&gt;tableGateway-&gt;select();
          return $resultSet;
      }
  </code></pre>
  
  <p>When I use print_r($resultSet) it is showing the following in the result instead of all rows in table, which is i am expecting. can u tell why it is not showing all rows.</p>
  
  <pre><code>Zend\Db\ResultSet\ResultSet Object
  (
      [allowedReturnTypes:protected] =&gt; Array
          (
              [0] =&gt; arrayobject
              [1] =&gt; array
          )
  
      [arrayObjectPrototype:protected] =&gt; Users\Model\User Object
          (
              [id] =&gt; 
              [name] =&gt; 
              [email] =&gt; 
              [password] =&gt; 
          )
  
      [returnType:protected] =&gt; arrayobject
      [buffer:protected] =&gt; 
      [count:protected] =&gt; 3
      [dataSource:protected] =&gt; Zend\Db\Adapter\Driver\Pdo\Result Object
          (
              [statementMode:protected] =&gt; forward
              [resource:protected] =&gt; PDOStatement Object
                  (
                      [queryString] =&gt; SELECT `user`.* FROM `user`
                  )
  
              [options:protected] =&gt; 
              [currentComplete:protected] =&gt; 
              [currentData:protected] =&gt; 
              [position:protected] =&gt; -1
              [generatedValue:protected] =&gt; 0enter code here
              [rowCount:protected] =&gt; 3
          )
  
      [fieldCount:protected] =&gt; 4
      [position:protected] =&gt; 0
  )
  </code></pre>