-
Notifications
You must be signed in to change notification settings - Fork 686
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
CheckList fails on unidirectional one-to-many relationships #212
Comments
ok, I understand the issue - now the question is what do we do about it? |
Unfortunately, I don't have any ideas. My tests were failing and I spent some time figuring out why. I reported the issue in hopes of saving other people's time doing the same. I don't necessarily expect a fix, although I suppose the documentation could be updated to mention that this isn't a supported scenario. |
about documentation - I couldn't agree more. |
What about giving
In addition to changing the classes, it would be necessary to update the extension methods to actually allow supplying this parameter. |
A short test for my specific scenario shows that this would work. |
That's great news. |
CheckInverseList should be used. |
Given the following domain model and mappings:
The following code will throw a PropertyValueException when
CheckList()
is called:This happens because
CheckList()
tries to immediately save the LineItems in the list, which doesn't work because the relationship is unidirectional.The text was updated successfully, but these errors were encountered: