doctrine/doctrine2 — pull request #523 by jankramer (2012-11-25 18:40:26+00:00)
Title: [DDC-2074] Bugfix regarding clearing cloned PersistentCollections

When calling clear on a PC that has no owner (e.g. because it was cloned), it can't be deleted as there is no metadata available (that's essentially the exception mentioned in the ticket). In these cases, I think it shouldn't be scheduled for deletion, but please have a look as my knowledge of the ORM internals is limited.