BC fix related to using Doctrine's RegisterMappingsPass