How old is your child? There will definitely be a period of time where the child will be anxious going to school as it is a new environment and strange people but they will adapt once they are more familiar.
Take time. My baby then too as she is so used to latching. Took almost half a year for her to realise that she has no choice but to drink from bottles in school and stopped kicking a fuss.
Takes time to adapt. Every child is diff. My LO 7 months went to ifc. Cry murder for 2 days and 3rd day got better. Now 2nd week already and no more crying.
Can bottle feed during day and only latch at night.get baby used to this routine.
It will take time to adjust. Don't think there is a solution on this
Baby takes time to adapt..Very heart pain I know
Give them time