I migrate Drupal 6 to Drupal 8. In Drupal 8 I have content type that has field with type
Entity reference that reference specific taxonomy dictionary. I can't find out how to set
Entity reference field
yml migration file. I have tried:
field_my_field: plugin: iterator source: field_my_field process: target_id: plugin: default_value default_value: 19
I would expect that code above set Entity reference (
field_my_field) to reference term with id
19 (that already exists). There is no error (or message) and
default_value plugin is called correctly a returns
19. But in migrated content is not reference set.
I tried to set reference manually and then dump it and result was:
[field_my_field] => Array ( [x-default] => Array (  => Array ( [target_id] => 19 ) ) )
I have tried lot of other ways how to set entity reference
target_id but nothing actually work. Do anybody know how to set entity reference
target_id in migration yml file?