doctrine/mongodb-odm — pull request #999 by alcaeus (2014-12-23 08:00:53+00:00)
Title: Fix changeset handling for new documents

This fixes an issue that occurs when modifying a newly persisted document in an onFlush() event handler.
The issue causes the insertion to be treated as an update even though only an insert needs to be done. Thus, postUpdate listeners are called which is not correct.