Fixed
Project:
Entity Usage
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2026 at 08:37 UTC
Updated:
23 Jul 2026 at 08:57 UTC
Jump to comment: Most recent
$key = $target_id . $target_type . $source_id . $source_type . $source_langcode . ($source_vid ?: 0) . $method . $field_name;
Concatenating fields without a separator means two distinct tuples can theoretically produce the same string key (e.g. target_id=1 + target_type="2x" vs target_id=12 + target_type="x"), causing one row to silently overwrite another in $this->inserts before the bulk insert runs. Low likelihood given typical machine-name entity types, but cheap to fix by joining with a delimiter (e.g. "\0").
Use a delimiter.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
alexpottComment #7
alexpott