Self-similar radiating flows in Roche-model with an idealized magnetic field