Skip to content
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

Fix orphan removal for detached one-to-one #3406

Merged
merged 9 commits into from
Aug 15, 2023

Conversation

bahusoid
Copy link
Member

Related to #3403 (Reported issue still not fixed throwing some other error. But I believe constrained + delete-orphan is invalid mapping combination)

bahusoid and others added 3 commits August 13, 2023 13:36

Verified

This commit was signed with the committer’s verified signature.
gliptak Gábor Lipták
@@ -203,7 +203,7 @@ private void CascadeProperty(object parent, object child, IType type, CascadeSty

if (loadedValue != null)
{
eventSource.Delete(entry.Persister.EntityName, loadedValue, false, null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entry is for parent. So parent entity name is supplied for removing child entity. This entity name is only used when one-to-one entity is detached - so it's quite rare case.

bahusoid and others added 3 commits August 13, 2023 18:05
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
bahusoid and others added 3 commits August 13, 2023 20:20
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
@bahusoid bahusoid merged commit 3e353c1 into nhibernate:master Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants