Hello,
we must change (extend) our entity model and therefor we convert the type of some entities.
As example (like in the attached example):
We have an EntityA that have a reference to an EntityB.
But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic how we detect the existing EntityB instances they must be converted to the new Entity. With the same ID, because it's possible that many other entities have just a ID based reference with a simple 'int' field to this element. And we thought that also the real references are based on the ID.
This step is done by our updateDB (we call this step profileMigration)
But after this conversion, the reference from EntityA to an EntityB (which is now a NewKindOfEntityB (subclass of EntityB) is broken. The ObjectDB explorer still show as Entity Class the 'EntityB' with the correct ID, but all fields are empty.
For us it would be a very hard challenge to find all references they could be involved, because we use inheritance a lot.
Is it possible that you can provide a fix?. We think it must be possible to detect that the reference is 'broken' and then try to refresh the reference.
A one file example to demonstrate the scenario is attached.