the problem is that some of the events are lifecycle callbacks while
others are not (see also https://github.com/doctrine/doctrine2/pull/729)

we could use the event names as keys too, and use isset instead of
in_array if you are worried about performance.