Skip to content

Loading…

DDC-145: Cascaded delete on a lazyloaded persistent collection #2077

Closed
doctrinebot opened this Issue · 3 comments

1 participant

@doctrinebot

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.

@doctrinebot

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.

@doctrinebot

Comment created by romanb:

Will need to write a functional test for this before I fix it by reverting the change for _cascadeRemove.

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-ALPHA4 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.