Influence of the magnetic field on phase transitions in PrAlO3