title: doctrine 2 findby function , get keys and values
body: <p>can i get the keys and values dynamically.</p>
  
  <p>in php, you would: <code>foreach ($array  as $key  =&gt; $value)</code></p>
  
  <p>but you can do this for :</p>
  
  <pre><code>$this-&gt;_em-&gt;getRepository('Members')-&gt;findBy(array('id' =&gt;5));
  </code></pre>
  
  <p>any way to get the keys from this with their values..?</p>
  
  <p>i can do this by turning it into an array and extract it but i wouldnt get any association results inside the array ..  </p>
  
  <p>i want to do this as i want to be able to extract all properties and values of this object and extract all other objects within it too..  </p>