Cascade of "all-delete-orphan" not supported for one-to-one

Description

It would be useful if "all-delete-orphan" was supported as a cascade option for one-to-one mappings. If it is not to be supported then it would be useful if the schema disallowed it or if NHibernate threw an exception when you tried to use it.

This is related to the following forum entry:
http://forum.hibernate.org/viewtopic.php?t=961144&highlight=onetoone+cascade

Environment

None

Activity

Show:
Former user
March 21, 2012, 12:47 PM

As mentioned, this is fixed in Hibernate.
I was a bit suprised when I discovered that this feature lacks in NHibernate.
Any plan for when this is fixed?

Oskar Berggren
March 26, 2012, 3:27 PM

There is no plan. Anyone willing to work on porting the feature should do so, and submit pull requests on github (preferably formatted for easy reviewing).

Michael Charalambous
November 14, 2012, 10:28 PM

Added pull request for this issue. See https://github.com/nhibernate/nhibernate-core/pull/171

Alex Zaytsev
February 22, 2015, 1:07 AM

Merged to master @ 9a91dbb30492c08aef71c764ce7f43c63930ad05

Alex Zaytsev
May 1, 2017, 3:40 AM

Closing issues resolved in 4.1.0

Fixed

Assignee

Alex Zaytsev

Reporter

Colin Jack

Components

Fix versions

Affects versions

Priority

Minor
Configure