-
Notifications
You must be signed in to change notification settings - Fork 927
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
Component That References Another Entity Can Cause Foreign Key Exception #1616
Comments
Here is Console APP that shows the issue:
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After updating to Nhibernate 5.0 from Nhibernate 3.1.0.4 and Fluent Nhibernate 2.1.0 from Fluent Nhibernate 1.2.0.712 the following issue started occurring.
I have an object Container which contains a list of Parents. Parents contains a COMPONENT object with a reference to another StringObject object.
There are the following tables:
Container
Parent - Contains the Component as well.
StringObject
If I create a Container with two parents and the first parent has a Component and the second doesn't everything works. But If the first has not component and the second doesn't I get a foreign key exception.
Nhibernate doesn't work properly with components. If it isn't a component but a regular domain mapped class to it's own table everything works.
The text was updated successfully, but these errors were encountered: