Heey Nick,
While creating the object of Motor_iE1 do you also set the association to the object of Motor_E1? It looks to me that the objects are created but the association between the objects is not being set.
Kind regards,
Edo
So your domain model looks something like this:
Then your create flow will look something like this:
and in the create of NewMotor__iE1 to associate it with NewMotor it wil look like this:
In the create you press new and then in the member selection you pick the association to Motor_E1 and as value you set the Motor_E1 you created before this create.
Hope i am clear enough with this :)
It looks like the Retrieve hasn’t found anything.
Add a breakpoint at the Retrieve and inspect the variables. It will help you see what is going on.
It’s best practice to always check you have an entity returned before trying to undertake any actions on it.
here:
screenshot:
I have cllicked on Entity “Motor_iE1” in the domain model (assotiation has just Multiplicity and On delete) and here is the type:
here: