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

Closed
doctrinebot opened this Issue Nov 13, 2009 · 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 Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment