Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When running a field_collection migration that is multi-value on the host entity, only the last field collection item is saved on the host entity. Patch to come.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_collection-reset_cache_before_loading-2698839-2-7.x.patch | 783 bytes | tom friedhof |
Comments
Comment #2
tom friedhof CreditAttribution: tom friedhof at ActiveLAMP commentedIt seems that resetting the entity cache before loading the host entity fixes this issue. I moved the reset cache to before the host entity is loaded.
Comment #3
renatogI applied the #2 and it working well. On that case we're moving
$host_entity = entity_load_single($this->hostEntityType, $collection->host_entity_id);
from before to after resetCache(). It's makes senseComment #5
renatogMoved to the dev branch
Thank you so much for your contribution