diff --git a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php index 063f413..e18edbd 100644 --- a/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php +++ b/core/lib/Drupal/Core/Entity/DatabaseStorageControllerNG.php @@ -253,7 +253,10 @@ protected function attachPropertyData(array &$entities, $load_revision = FALSE) foreach ($field_definition as $name => $definition) { // Set translatable properties only. if (isset($data_fields[$name]) && !empty($definition['translatable'])) { - $translation->{$name}->value = $values[$name]; + // @todo Figure out how to determine which property has to be set. + // Currently it's guessing, and guessing is evil! + $property_definition = $translation->{$name}->getPropertyDefinitions(); + $translation->{$name}->{key($property_definition)} = $values[$name]; } // Avoid initializing configurable fields before loading them. elseif (!empty($definition['configurable'])) {