Export picks only the last entity from a multivalue entity reference field

Created on 8 January 2025, 3 months ago

Problem/Motivation

Since https://git.drupalcode.org/project/default_content_deploy/-/commit/09be1... the export of multivalue entity reference fields is broken. Now we only export the lastly referenced entity due to

                  referenced_entities[$entity_type] = $property->getTargetIdentifier();

in Exporter::getReferencedEntityIds().

Steps to reproduce

Create an entity referencing several other entities and do a drush dcder commerce_order --entity_ids=123 --bundle=default

Proposed resolution

Partially revert 09be1f63ff32bbc154f74c7367cb18023f814113 or fix getReferencedEntityIds().

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇭🇺Hungary czigor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024