title: Is it possible to export a CSV file with Doctrine?
body: <p>Since there is no OUTFILE capabilities with Doctrine as far as I can tell, how would one export a query as a CSV file?</p>
  
  <p>In MySQL, for example, the query would be:</p>
  
  <pre><code>SELECT * INTO OUTFILE 'file.csv'
  FIELDS TERMINATED BY ',' 
  OPTIONALLY ENCLOSED BY '"'
  LINES TERMINATED BY '\n' 
  FROM table;
  </code></pre>
  
  <p>How could the same be done with Doctrine?</p>