Jira issue originally created by user ablock:
It seems that if you call PersistentCollection#unwrap on a lazy loaded collection, you get nothing back (unless you initialize the collection first). Because of this, UnitOfWork#_cascadeRemove is "unwrapping" the collection before transversing it, and nothing gets deleted on the cascade.
Comment created by romanb:
Right, I think I made that change for all cascade methods but actually I think for *cascadeRemove initialization is actually intended. For the others it doesnt make sense.
Will need to write a functional test for this before I fix it by reverting the change for _cascadeRemove.
Issue was closed with resolution "Fixed"