Group: Awaiting Activation
Posts: 65,
Visits: 306
|
Hello,
I have a situation where I need to insert new rows of 3 related BOs on .Save. BOs parent/child relationship is setup correctly in the BO Mapper, and it follows the following path:
BO_1
P1_Key (PK)
BO_2 (Child to BO_1)
P2_Key (PK)
P1_Key (FK to BO_1)
BO_3 (Child to BO_2)
P3_Key (PK)
P1_Key (FK to BO_2)
P2_Key (FK to BO_2)
When I call Save to add new rows of all 3 BOs, the first 2 inserts complete successfully, but BO_3 insert fails, because it doesn't get newly inserted P1_Key. I realize that the design could be improved by simply getting rid of P1_Key FK in BO_3, but lets say for now that I need to stick to this design to accommodate some obscure requirements.
So, why doesn't BO_3 get P1_Key?
Thanks
|