Skip to content

Cascading orphan delete may not work on versioned entity #3325

@csharper2010

Description

@csharper2010

In a certain scenario, the orphan delete of a child entity is not performed:

Parent entity must be versioned.

Way to reproduce

  • new Parent created
  • Child entity is added to Parent
  • Parent is saved (cascaded to child)
  • Child is removed
  • Flush()

Child is then added to the database with NULL as Parent pointer.

Pull request is created.

I would appreciate addition to next 5.4.x release.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions