Creation of the doctrine entity resolver to be able to use doctrine entity listener easily on every entities
Refacto code with no use of the setLocale method for badge as the entity listener is here for that + correct test