Bugfix
Part of the application startup is a model comparison of the model in the database with the model defined by the current software version. If there are differences, a migration instruction is generated which converts the models into one another. This operation contains a model copy of the persistent model into a transient model. This copy can fail because association ends and their references can be created in a different order. In this case, either the wrong association end is assigned to a reference, or the assignment fails because the end with the corresponding index has not yet been created.
It must be ensured that copies of references are linked to exactly the association ends as was the case in the copied model.
Test
No test.