I'll use an example different from mine that is familiar.
Invoice - InvoiceLines - InvoiceLine
An Invoice must have at least one InvoiceLine would be the business requirement.
Now my property on my Invoice object for my InvoiceLines collection is read-only, of course.
Let's say I have a valid object and I remove the line from the InvoiceLines collection violating this business rule for the Invoice.
Do I need to maintain a referential link from the collection to the parent object in order to attempt to check a rule? (I don't like having these sorts of circular references but I've seen it somewhere in the framework where the link from the child to the parent is NonSerialize and NotUndoable).
Thank you - worked like a charm.
Copyright (c) Marimer LLC