doctrine/doctrine2 — pull request #887 by Strate (2013-12-25 12:34:48+00:00)
Title: DDC-2871 PreFlush event called multiple times in event manager.

PreFlush event called multiple times in event manager.
In this fix while computing entity changeset preFlush event will be called only in callbacks and entity listeners, not in event manager.

more discuddion here: http://www.doctrine-project.org/jira/browse/DDC-2871