I’m trying to update a paragraph with this code:
$entityManager = Drupal::entityTypeManager();       $paragraph = $entityManager->getStorage('paragraph')->load('1');       $paragraph->set('field_test','testValue');       $paragraph->save(); But I received this error:
DrupalCoreEntityEntityStorageException: Update existing 'paragraph' entity while changing the ID is not supported. in DrupalCoreEntitySqlSqlContentEntityStorage->save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php). Do you know why?
P.s. If I try to update with the last ID it works. It doesn’t work only for old Paragraphs.



