In situations where an entity reference field with no-cardinality is exported with a reference included, but then an import is attempted after the reference was removed, you run into a fatal PHP error of the form:
Call to a member function initializeTranslation() on null in
/path/to/entity_xliff/src/Drupal/Translatable/EntityTranslatableBase.php on line 409
Proposed resolution
We should throw an EntityStructureDivergedException exception when we're unable to get a translatable in such cases (around line 408/409 of EntityTranslatableBase).
Problem / motivation
In situations where an entity reference field with no-cardinality is exported with a reference included, but then an import is attempted after the reference was removed, you run into a fatal PHP error of the form:
Proposed resolution
We should throw an
EntityStructureDivergedException
exception when we're unable to get a translatable in such cases (around line 408/409 of EntityTranslatableBase).