add the doctrine registry and entity type support