That's kinda messed up.
Though I remember one case where a woman was forced to stop practicing paganism while her own son was at her house because the judge ordered it. Meanwhile, her ex-husband was taking said child to church and getting him baptized and stuff.