// Set the 'revision_translation_affected' field to TRUE to match the
// return value of the case when the field does not exist.
if ((!
$original->
isRevisionable() || !
$original->
isTranslatable()) &&
$entity_type->
isRevisionable() &&
$entity_type->
isTranslatable()) { $entity->
set($revision_translation_affected_key, TRUE
);
} // Finally, save the entity in the temporary storage.
$temporary_storage->
restore($entity);
} catch (\Exception
$e) { $this->
handleEntityTypeSchemaUpdateExceptionOnDataCopy($entity_type,
$original,
$sandbox);
// Re-throw the original exception with a helpful message.
$error_revision_id =
$load_revisions ? ", revision ID: {
$entity->
getLoadedRevisionId()}" : '';
throw new EntityStorageException("The entity update process failed while processing the entity type {
$entity_type->
id()}, ID: {
$entity->
id()}$error_revision_id.",
$e->
getCode(),
$e);
} $sandbox['progress'
]++;
$sandbox['current_id'
] =
$identifier;
} // Reset the cache in order to free memory as we progress.