When do kids stop crying to go to bed?

My 25 month old cries every time she gets laid down for bed. How long will this last?