BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Fatal error while importing variant select field #170

Closed ascheider closed 1 month ago

ascheider commented 1 month ago

I have a class field country_layout which is simple dropdown

image image

image

After the import i get the exception. See Trace

trace.txt

The $siblings is loaded as Listing ant then you are trying to add the $item in line 4005 like in array.

BlackbitDevs commented 1 month ago

Which DD version?

BlackbitDevs commented 1 month ago

Think I found it. Can you please check 3.6.x-dev? Have added this:

$siblings = $parentElement->getChildren([AbstractObject::OBJECT_TYPE_OBJECT, AbstractObject::OBJECT_TYPE_VARIANT], true);
if($siblings instanceof AbstractListing) {
    $siblings = $siblings->load();
}
ascheider commented 1 month ago

@BlackbitDevs Yes. Thanks. It helps. I think you can merge it.

BlackbitDevs commented 1 month ago

Released 3.6.41.

I have to admit that the "Optimize inheritance" feature is used only by a few clients. If you see any problems with it, please notify me.