summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate/src/MigrateExecutable.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/migrate/src/MigrateExecutable.php')
-rw-r--r--core/modules/migrate/src/MigrateExecutable.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index 94075b7..cbe5f2f 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -386,9 +386,14 @@ class MigrateExecutable implements MigrateExecutableInterface {
$multiple = $plugin->multiple();
}
}
- // No plugins or no value means do not set.
- if ($plugins && !is_null($value)) {
- $row->setDestinationProperty($destination, $value);
+ // Ensure all values, including nulls, are migrated.
+ if ($plugins) {
+ if (isset($value)) {
+ $row->setDestinationProperty($destination, $value);
+ }
+ else {
+ $row->setEmptyDestinationProperty($destination);
+ }
}
// Reset the value.
$value = NULL;