$revision_2->name = 'test entity - ' .
$i . ' - en - rev2';
$revision_2->new_bundle_field = 'bundle field - ' .
$i . ' - en - rev2';
$revision_2->test_multiple_properties->value1 = 'shared table - ' .
$i . ' - value 1 - en - rev2';
$revision_2->test_multiple_properties->value2 = 'shared table - ' .
$i . ' - value 2 - en - rev2';
$revision_2->test_multiple_properties_multiple_values
[0
]->value1 = 'dedicated table - ' .
$i . ' - delta 0 - value 1 - en - rev2';
$revision_2->test_multiple_properties_multiple_values
[0
]->value2 = 'dedicated table - ' .
$i . ' - delta 0 - value 2 - en - rev2';
$revision_2->test_multiple_properties_multiple_values
[1
]->value1 = 'dedicated table - ' .
$i . ' - delta 1 - value 1 - en - rev2';
$revision_2->test_multiple_properties_multiple_values
[1
]->value2 = 'dedicated table - ' .
$i . ' - delta 1 - value 2 - en - rev2';
$revision_2->
save();
if ($translatable) { $revision_2_translation =
$storage->
createRevision($entity->
getTranslation('ro'
), FALSE
);
$revision_2_translation->name = 'test entity - ' .
$i . ' - ro - rev2';
$revision_2->new_bundle_field = 'bundle field - ' .
$i . ' - ro - rev2';
$revision_2->test_multiple_properties->value1 = 'shared table - ' .
$i . ' - value 1 - ro - rev2';
$revision_2->test_multiple_properties->value2 = 'shared table - ' .
$i . ' - value 2 - ro - rev2';
$revision_2_translation->test_multiple_properties_multiple_values
[0
]->value1 = 'dedicated table - ' .
$i . ' - delta 0 - value 1 - ro - rev2';
$revision_2_translation->test_multiple_properties_multiple_values
[0
]->value2 = 'dedicated table - ' .
$i . ' - delta 0 - value 2 - ro - rev2';
$revision_2_translation->test_multiple_properties_multiple_values
[1
]->value1 = 'dedicated table - ' .
$i . ' - delta 1 - value 1 - ro - rev2';
$revision_2_translation->test_multiple_properties_multiple_values
[1
]->value2 = 'dedicated table - ' .
$i . ' - delta 1 - value 2 - ro - rev2';
$revision_2_translation->
save();
} } }