I'm working on exporting from a database table using Doctrine and symfony. I've made a call to my database with
$variableTable = Doctrine::getTable('Table Name')->findAll();
then I set another variable to get data from it like so:
$variable = $variableTable->getData();
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.
I'm not sure if I'm missing something.