-
Notifications
You must be signed in to change notification settings - Fork 617
Cyclic relationship not reconstituted from DB #2622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for the delayed answer on this. Somehow it slipped through my list. |
Thanks for the explanations. Any chance to improve the documentation for this situation? I had experimented with wither methods but didn't think about removing the constructor argument. |
Will keep this issue open for the documentation. |
FYI |
This slipped through the check before: A has dependency on A defined within the constructor. Because of a "same" entity check, we skipped the `inCreation` check and did not throw the MappingException. Closes #2622
This slipped through the check before: A has dependency on A defined within the constructor. Because of a "same" entity check, we skipped the `inCreation` check and did not throw the MappingException. Closes #2622
This slipped through the check before: A has dependency on A defined within the constructor. Because of a "same" entity check, we skipped the `inCreation` check and did not throw the MappingException. Closes #2622
I have a model where cycles in the nodes are possible. However, I could not find any way to reconstitute these cycle from the database. Persisting them works as expected.
Here is an example project that demonstrates the problem: https://github.com/languitar/sdn-cycles-repro. A startup event listener executes the reproduction code. This code creates a single node with a relationship pointing to itself. On loading, this cycle is filled with a
null
value, as can be seen in the output of the reproduction code:Is there any way to reconstitute such a situation from the database? The documentation is a bit scarce on this topic.
For the reference, this is the node class used:
The text was updated successfully, but these errors were encountered: