You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Importing the name from a one to many relationship via a CSV file? #258
Sorry, if this question has been asked and the answer is simple, but I have spent the last few hours researching the answer and have been unable to find it.
I have a simple product entity that has a name and a one to many relationship with a manufacturer entity.
I would like to try and import a CSV file that simply has a product name and manufacturer name as the column headers that then adds the products with the associated manufacturer.
I have tried using name and manufacturer and name and manufacturer.name, but it has not worked.
I have also tried using a StringToObjectConverter and used the manufacturer.id, but that did not work either.
Activity
Baachi commentedon Sep 2, 2015
Hey sorry for the delay.
I think the best solution would be to create your own converter which transform the array (which comes from the csv) to your product entity.
Short example (so you get an idea what i mean).