Object relationship questions #1921
Unanswered
Brannos1970
asked this question in
Questions
Replies: 1 comment 3 replies
-
If my memory is right, the relationship types value isn't actually used anymore, except maybe for lazy loading (and I'm not sure about that). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When creating child objects and set the relationship type (ie none, child, lazy, private) does this have any effect when we call FieldManager.UpdateChildren or FieldManager.UpdateAllChildren.
I am asking because I don't understand the use of all of the relationship types and I have child objects that are owned by its parent in the database. For example, I have an address class that can't save its self or updates itself because it is owned.
In the parent class, I would think setting the relationship type to "none" would result in the FieldManager not updating it when UpdateChildren or UpdateAllChildren is called and I can manually update the database object, for example below. Am I on the right track?
Beta Was this translation helpful? Give feedback.
All reactions