Revert "Fixing postFlush event for doctrine >= 2.4"

This reverts commit a5bf68b8ad38321325de38954bfc7ca305e00277.