Skip to content
Snippets Groups Projects
Commit b74e1e63 authored by Adam Bramley's avatar Adam Bramley Committed by Sascha Grossenbacher
Browse files

Issue #3076232 by acbramley, kwiechmann, raphaeltbm:...

Issue #3076232 by acbramley, kwiechmann, raphaeltbm: paragraphs_post_update_rebuild_parent_fields fails for entity type with paragraphs base field and no revision_data_table
parent e7e0a4a6
No related branches found
Tags 7.x-1.0-beta1
No related merge requests found
......@@ -160,8 +160,8 @@ function paragraphs_post_update_rebuild_parent_fields(array &$sandbox) {
$column_names = $table_mapping->getColumnNames($field_name);
$revision_column = $column_names['target_revision_id'];
if ($field_storage instanceof BaseFieldDefinition) {
$field_revision_table = $storage->getRevisionDataTable();
if ($field_storage instanceof BaseFieldDefinition && $field_storage->getCardinality() === 1) {
$field_revision_table = $storage->getRevisionDataTable() ?: $storage->getRevisionTable();
$entity_id_column = $entity_type_definition->getKey('id');
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment