pimcore / data-importer

This extension adds a comprehensive import functionality to Pimcore Datahub.
Other
38 stars 56 forks source link

[Bug]: Load dataObject don't work for many to many relation if only one source attribute selected #400

Closed fszenborn closed 6 months ago

fszenborn commented 6 months ago

Expected behavior

When source attribute is selected and Load DataObject transformation is selected as well I expect to get valid data mapped by transformer into many to many field without additional transformations. User should be at least informed that asArray transformer is needed to make this work because it is not obvious. image

Actual behavior

I get error that type is not supported for many to many relation assignment. image

The question is why I cannot map single field to many to many relation? To overcome this I need to add additional transformer AsArray to overcome the issue. But why is it needed?

Steps to reproduce

  1. Create object with many to many field.
  2. Import data into many to many field by selecting one source attribute and load DataObject without asArray transformer