Doctrine 2 - ORM

[GH-398] Ensure onFlush and postFlush events are always called