title: Exporting to csv file with Doctrine and Symfony
body: <p>I'm working on exporting from a database table using Doctrine and symfony. I've made a call to my database with</p>
  
  <pre><code>$variableTable = Doctrine::getTable('Table Name')-&gt;findAll();
  </code></pre>
  
  <p>then I set another variable to get data from it like so:</p>
  
  <pre><code>$variable = $variableTable-&gt;getData();
  </code></pre>
  
  <p>I just want to be able to loop through that so I can pull the data I need to put into a csv file but I'm stuck on that part. For some reason, when I debug, it shows that the second variable that is getting set to the value of the getData is null/0.</p>
  
  <p>I'm not sure if I'm missing something.</p>