Symfony 有 CSV 导入生成器吗?
这似乎是一件显而易见的事情,但我似乎找不到实现。
以同样的方式我可以运行:
./symfony doctrine:generate-admin backend MyModel
我希望能够执行类似的操作:
./symfony doctrine:generate-importer backend MyModel
这将为 CSV 文件创建基本文件上传,标题与列名称匹配。
这样的事存在吗?
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.
Does such a thing exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊,对不起,科林,我搞错了。有这个。
sfCsvPlugin - 0.1.2
sfCsvReader:读取 CSV 文件。
sfCsvWriter:以 CSV 样式写入数组。
sfCsvPropelWriter:使用 sfCsvWriter 帮助您通过 Criteria 对象和 CSV 样式的 doSelectRS 方法从模型中转储数据。
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.