Fixing postFlush event for doctrine >= 2.4
Merge pull request #10 from tyx/hotfix/postFlushWithDoctrine24

Fixing postFlush event for doctrine >= 2.4