pimcore / data-importer

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

[Bug]: Field definition for field not found if field name starts with upper case for "If source is empty" unchecked option #369

Closed judip closed 10 months ago

judip commented 10 months ago

Expected behavior

Data target type "Direct" should handle correctly field name starts with lower and upper case in object definition.

Actual behavior

Now only fields name with lower case are handle correctly becasue line 141 (file data-importer/src/Mapping/DataTarget/Direct.php) $fieldName = lcfirst(str_replace('get', '', $getter)); This code converts always field name to lower case and then reports error: Field definition for field "x" not found.

Steps to reproduce

Import any data for direct type and unchecked checkbox "If target is not empty" or "If source is empty".

eciosk commented 10 months ago

Same here. Pimcore 11.0.12 Data-importer 1.8.4

dvesh3 commented 10 months ago

Regression of #361