doctrine/doctrine2 — pull request #703 by shulcsm (2013-06-19 13:35:07+00:00)
Title: Clear visitedCollections

Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.