Planet orbits so close to its star that their magnetic fields connect