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
Sorry for coming back so late, I didn't get the notification.
When I had to deal with this in the past I have done it in two different ways:
If using the primary key in the import, I repeated the line of the model instance as many times as necessary to include the relationships, leaving blank other fields.
Other approach was to separate with pipes "|" the related entities into the same field. Just like an array.
Is there any way to import a has_many or has_and_belongs_to_many relationship? A collection of ids? I can't figure out how to build the csv also.
Thanks for this great gem.
The text was updated successfully, but these errors were encountered: