Skip to content

Fix ExtractInterceptor for subclasses #2509

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

Merged
merged 5 commits into from
Sep 2, 2020
Merged

Conversation

maca88
Copy link
Contributor

@maca88 maca88 commented Sep 1, 2020

Fix for a regression made by #1946.

Fixes #2508

@bahusoid
Copy link
Member

bahusoid commented Sep 1, 2020

What about check inside InjectInterceptor:

if (entity.GetType().BaseType != _entityType)

Shouldn't it be _entityType.IsInstanceOf(entity)?

@maca88
Copy link
Contributor Author

maca88 commented Sep 1, 2020

Shouldn't it be _entityType.IsInstanceOf(entity)?

Good observation, yes it should. Changed.

@bahusoid bahusoid added this to the 5.3.3 milestone Sep 2, 2020
@hazzik hazzik merged commit 1581887 into nhibernate:5.3.x Sep 2, 2020
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.

3 participants