Kdyby/Doctrine compatibility patch

Compatibility with Kdyby Events used by Doctrine package
@see https://github.com/Kdyby/Events/issues/22