Hakan Maac
2018-05-21 17:37:35 UTC
I am deleting an object from a list but it has a one to one (reference)
with another object, yet it is a nullable field.
Parent 1 ----> * ChildA
Parent 1 ----> * ChildB * -----> 0..1 ChildA
I am removing one of ChildA and I am trying to make the reference of ChildB
to ChildA null (it is nullable), I am getting a `update or delete on table
"ChildA" violates foreign key constraint`
What is the right way to do it?
with another object, yet it is a nullable field.
Parent 1 ----> * ChildA
Parent 1 ----> * ChildB * -----> 0..1 ChildA
I am removing one of ChildA and I am trying to make the reference of ChildB
to ChildA null (it is nullable), I am getting a `update or delete on table
"ChildA" violates foreign key constraint`
What is the right way to do it?
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.