6 month old won’t take a bottle

My daughter is 6 months old and she won’t drink her formula. She just wants to sleep or cry. This has been going on for 3 days. She’s had mustard yellow poos that aren’t watery but paste like. I think her top feet may be coming through. I was able to get her to eat oatmeal with formula in it but she won’t drink out of her bottle. The doctor said it’s just her teething. Any advice. I’m worried about dehydration.