Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
This is not a relationship definition, but a foreign key managment definition. The FillBy methods will still only work if a parent relationship is setup. The RegisterForeignKey methods will automatically propgate and manage foreign key values. For example, if you add a parent record and then a child with the foreign key registered, the parent will have a PK of -1, let's say. When a child record is created, it will automatically update the foreign key field with a -1. When the parent (or even the child BO) is saved and the real parent PK is assigned and retrieved, the BOs will automatically update the child BOs before they are committed to the database...thus foreign key management...not parent relationship managment. This is more akin to a foreign key contraint than a parent relationship definition.
|