Hi,
I'm getting a strange behaviour and could use help as to how to debug the issue.
Basically, I have an entity with various related entities. When I use the following to save a new entity:
Adapter.SaveEnitity(modifiedEntity, True, True) <-- refetch and recursive
Two insterts for modifiedEntity are attempted, one with all the fields null'd (or default values) except for one (which is a foreign key to a related entity that was changed prior to saving). I can see this happening by looking at the debug output, but can't figure out why the second insert is occuring...
All I know is it's because I'm recursively saving (if i set the 3rd/recursive parameter to False, then the second insert does not occur). Anyone have any tips for me that would help me debug this to figure out the "route" that's taken that would cause this second insert to occur? (i.e. figure out which related entity is causing this second insert to occur).
I'm not sure if I'm explaining things clearly, but any suggestions or help would greatly be appreciated.
BTW, I'm using LLBLGen 2.0
TIA