diff --git a/field_collection.migrate.inc b/field_collection.migrate.inc index 552551b..93d9734 100644 --- a/field_collection.migrate.inc +++ b/field_collection.migrate.inc @@ -105,7 +105,13 @@ class MigrateDestinationFieldCollection extends MigrateDestinationEntity { $updating = FALSE; $host_entity = entity_load_single($this->hostEntityType, $collection->host_entity_id); entity_get_controller($this->hostEntityType)->resetCache(); - $entity->setHostEntity($this->hostEntityType, $host_entity); + + if (isset($row->language)) { + $entity->setHostEntity($this->hostEntityType, $host_entity, $row->language, TRUE); + } + else { + $entity->setHostEntity($this->hostEntityType); + } } unset($collection->host_entity_id);