when setting an entity connection with a string as value transform it into the registered entity, (prevent future getRaw on a string => error)