One-To-One Orphaning Entity Issue #2866
Unanswered
aokellermann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting a strange exception thrown when committing a transaction which deletes an orphan from an unconstrained one-to-one relationship. I am using Fluent NHibernate for mappings.
There are three scenarios that I would like to work involving
TenantUserPerson
:TenantUserPerson
by assigningTenantUser.TenantUserPerson
.TenantUserPerson
when orphaning parentTenantUser
fromUser.TenantUsers
.TenantUserPerson
when orphaning by settingTenantUser.TenantUserPerson
tonull
.Code (in
User
class):Generated SQL DELETE looks perfect.
On commit, throws:
I have no idea why this exception is being thrown. Does anyone have any ideas?
Here are my entities and mappings:
Entities
Fluent Mapping
See https://github.com/aokellermann/nhibernate-core/commits/feature/GH-2866
Beta Was this translation helpful? Give feedback.
All reactions