I’m trying to migrate users and user profiles to site, where both entities might be already present. In this case I would like to overwrite specified fields and leave others in the original state. I’m trying to map profile_id
like this:
uid:
plugin: migration_lookup
no_stub: true
# previous user migration
migration: mayors_users
# property in the source data
source: lau
profile_id:
plugin: entity_lookup
entity_type: profile
bundle: profile
bundle_key: type
value_key: uid
source: '@uid'
However, this fails, so profile_id
is null
.
Do you happen to know, how can I use entity_lookup (or another) plugin for this?