Adds custom data transformer option to hidden entity type

Renamed entity_repository key to "class"