Magnetic phase transitions in garnets