Added static revert() to EnumType to be used in DQL queries