Referenced entities show old value when changing properties
You can clear the static entity cache with EntityStorageBase::resetCache:

\Drupal::entityTypeManager()-&gt;getStorage('parent_entity')-&gt;resetCache([$parentEntity-&gt;id()]);