I have 2 domain objects that have a many-to-many relation. I’ll name these classes A and B. I want to add B to the association of A. So that A is attached to B. In a microflow I retrieve the B list from A so I then have a list of B. I then say in the microflow change list and I add B to that list. Now the list of B has an extra element. I then want to commit that list so that B is attached to A. So I add a commit object and commit the updated list. Nothing happens!! B isn’t connected to A! How can you fix this??
asked
Martyn Hiemstra
2 answers
1
How can you add different types of objects to the same list? That should already be impossible. Can you show us your microflow?
answered
Andreas Blaesius
0
Hi Martyn,
I am assuming that you have two different entities in the domain model, EntityA and EntityB. You need to do something like this: