Jira issue originally created by user thestanislav:
Here https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L527 PreFlushEventArgs expects number of arguments to be 2 and the first argument have to be instance of entity manager. But two arguments are passed and the first one is not instanceof em.
Comment created by @ocramius:
Being handled in DDC-2276
Issue was closed with resolution "Duplicate"