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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tom friedhof created an issue. See original summary.

tom friedhof’s picture

Status: Active » Needs review
FileSize
783 bytes

It 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.

renatog’s picture

Status: Needs review » Reviewed & tested by the community

I 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 sense

  • RenatoG committed 2a512f3 on 7.x-1.x authored by tom friedhof
    Issue #2698839 by tom friedhof, RenatoG: Migrating multiple values into...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Moved to the dev branch

Thank you so much for your contribution

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.