Is there a CSV import generator for Symfony?
This seems like an obvious thing, but I can't seem to find an implementation.
In the same way I can run:
./symfony doctrine:generate-admin backend MyModel
I'd like to be able to do something like:
./symfony doctrine:generate-importer backend MyModel
Which would create a basic file upload for a CSV file, with headings matched to the column names.
Do开发者_如何学运维es such a thing exist?
Ah sorry Colin i had the wrong end of the stick. There is this. sfCsvPlugin - 0.1.2
sfCsvReader: Reads a CSV file. sfCsvWriter: Writes an array in CSV style. sfCsvPropelWriter: Uses a sfCsvWriter to help you to dump data from your model through a Criteria object and doSelectRS method in CSV style.
精彩评论