dclareForMPS
dclareForMPS copied to clipboard
Temporary target model import not resolved after restart
In my "DetailsBack" example, I create the temporary model details
with Declare.
Then, we have a new dependency: coarse
depends on details
.
After a restart, this dependency cannot be resolved (I presume because details
model id changed).
I noticed that your details
model is not under VC. Hence, it is created again if you start from the state without local changes. When I restart after the details
model is created I do not see the error anymore.
details
model is temporary, so it should not under VC, right?
A, I overlooked that. Dependencies from persistent to non-persistent models does not work. Do you think that is necessary? The example works fine without it.
I think it automatically adds the dependency as soon as we create the Override
inside coarse
, because we refer to a StringDetail
in details
.
We could argue that in this case you should persist details
, but then we don't really need to keep track of the Override
s in a different place.