#How should I define the exportAction exporter class in order to export hasMany relation?
4 messages · Page 1 of 1 (latest)
There’s no good way to dynamically create columns in a csv since you have no way of knowing the number of columns needed. Also makes importing more difficult too. I would recommend exporting the relationship in one column as a json or array string.
Hello awcodes,
thanks, finally I imploded the prices into one field separated by a pipe, and import back this way.
The main problem here, that the getColumns function is static, and it's content can't be change based on options.