From 76ee85d25b548d73cf58c7c387c4cbb73c640386 Mon Sep 17 00:00:00 2001 From: Mike Ryan <mikeryan@virtuoso-performance.com> Date: Wed, 24 Aug 2016 10:45:33 -0500 Subject: [PATCH] Issue #2789459 by mikeryan: entity_lookup fails introspection with subfield destination --- src/Plugin/migrate/process/EntityLookup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Plugin/migrate/process/EntityLookup.php b/src/Plugin/migrate/process/EntityLookup.php index 94667c3b..3f70480b 100644 --- a/src/Plugin/migrate/process/EntityLookup.php +++ b/src/Plugin/migrate/process/EntityLookup.php @@ -117,7 +117,9 @@ class EntityLookup extends ProcessPluginBase implements ContainerFactoryPluginIn * {@inheritdoc} */ public function transform($value, MigrateExecutableInterface $migrateExecutable, Row $row, $destinationProperty) { - $this->determineLookupProperties($destinationProperty); + // In case of subfields ('field_reference/target_id'), extract the field + // name only. + $destinationProperty = reset(explode('/', $destinationProperty)); $this->determineLookupProperties($destinationProperty); $this->destinationProperty = isset($this->configuration['destination_field']) ? $this->configuration['destination_field'] : NULL; -- GitLab