I don't think it a cold but stomach bile. I know rich food can cause colitis and pacreatitus which are very serious.
Here are a couple of threads. If your baby continues to throw up I would take them to a Vet to be sure.
I hope they are feeling better soon.
http://www.yorkietalk.com/forums/sic...-vomiting.html
http://www.yorkietalk.com/forums/sic...my-foam-m.html