Silicon-Age / opal

Silicon Age's ORM layer.
0 stars 0 forks source link

Issues with OpalForms and creation of new objects for target forms #4

Open jonahgreenthal opened 1 year ago

jonahgreenthal commented 1 year ago

Suppose we're displaying an OpalForm<A>, its child forms <B>, and each B's target form <C>. For the creation of a new B and its C, if no data are filled out for B (leaving the defaults in place) but data are filled out for C, the new B and C were not being created.

This was hackily patched at some point (repository history has been lost), but the problem probably still occurs if instead it's OpalForm<A>, child forms <B>, each B's target <C>, and each C's target<D>, and we're not filling out B or C but are filling out D. Recursion is likely necessary in OpalFormUpdater.automaticChildren().

More details may be in the email thread entitled "Sufficient differentiators" from late December 2015.