DDC-1189: PersistentCollection::clear() does not cause the collection to be initialized #1793

doctrinebot opened this Issue Jun 2, 2011 · 3 comments

2 participants


Jira issue originally created by user ccapndave:

If clear() is called on an uninitialized PersistentCollection it needs to set the collection to be initialized.

An example of where this can cause problems:

  • Call clear() on an uninitialized collection
  • Check if an entity is in that collection using contains($entity)

This can return a false positive if the entity was previously in the collection.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0.7 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