let's say in my data model i have two entities
entity1 can be related to multiple entity2 and entity2 can only be related to one instance of entity1
now.. in the UI i want to make an instance of entity1
all good.. i can do that
entity1 has a string property and i want to split that up and use them to make instances of entity2 (so when entity2 is made it has a copy of that part of the string)
what is the best way to do this?
i thought about sending a notification when the OK button is done creating an instance of entity1, but somehow i don't think that the instance of entity2 will properly be related to entity1 and thus will not be saved out..
any hints?
entity1 can be related to multiple entity2 and entity2 can only be related to one instance of entity1
now.. in the UI i want to make an instance of entity1
all good.. i can do that
entity1 has a string property and i want to split that up and use them to make instances of entity2 (so when entity2 is made it has a copy of that part of the string)
what is the best way to do this?
i thought about sending a notification when the OK button is done creating an instance of entity1, but somehow i don't think that the instance of entity2 will properly be related to entity1 and thus will not be saved out..
any hints?