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

WIP - Better fix for inverse collection forgetting changes #2047

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

maca88
Copy link
Contributor

@maca88 maca88 commented Mar 10, 2019

A more general solution for NH-739 that is applied for all collection types mapped as inverse="true", where the current fix is applied only for bags (#1878). This PR is based on #2010, which extends the collection trackers to be aware of the flushed elements. In order to efficiently find the element owner when it is inserted before the full flush due to the id generator requirements, the GetElementOwner method was added which uses a precalculated data to get the owner. This logic also fixes an issue with ICollection.Count that #2010 has when an element is inserted before a full flush, which means that this PR should be merged with #2010.
In addition, this PR obsoletes #1253 as now it is possible to change the parent of a child when the collection is mapped as inverse="true".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant