diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index ba3aae9..ca42427 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -240,7 +240,7 @@ public function __construct(array $values, $entity_type, $bundle = FALSE, $trans if ($this->getEntityType()->isRevisionable()) { // Store the original revision ID the entity has been loaded with to // keep it safe from changes. - $this->resetOriginalRevisionId(); + $this->setOriginalRevisionId(); } } diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 127c188..7ff9c44 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -305,7 +305,7 @@ protected function doPostSave(EntityInterface $entity, $update) { // The revision is stored, it should no longer be marked as new now. if ($this->entityType->isRevisionable()) { - $entity->resetOriginalRevisionId(); + $entity->setOriginalRevisionId(); $entity->setNewRevision(FALSE); } }