If you arrive at school when the gate is locked just press the buzzer to let the office know who you are and they will let you in.
You will find that the gate unlocks automatically at ten to eight and at home time, but at other times is kept locked for your child's safety.