BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Brick with localized field with many to many object relation does not work #80

Closed ascheider closed 1 year ago

ascheider commented 1 year ago

Pimcore 10.5.10 Data Director: 3.2.37

How to reproduce:

Zip: Archiv.zip

Import 'Test' class and Import 'Import' Brick from zip. Create 2 Test objects in root folder: image Import Data Director Config from zip. Upload csv file: relation-brick-import.csv Run import. Expected Result: Relation Object is assigned in Test relation brick in german language. Actual result: Exception Trace: stack-trace.txt If i assign relation object manually everything is okay: image If i for example create input fields inside localized brick, import works fine, the problem is only with relation field. Hope it helps to reproduce the issue.

BlackbitDevs commented 1 year ago

Thanks for your brillant instructions of how to reproduce the error. Is fixed in 3.3.1.

BlackbitDevs commented 1 year ago

One little addition, @ascheider: Please be aware that the mapping field path is for the parent element. It is not to map the full path (which consists of path and key (= object name)). For this reason your example import currently throws an ALERT: Cannot set parent object to itself. But nevertheless the relation gets populated, so maybe this path problem was only on your example mapping.