In a pot heat olive oil anD cook onion and garlic stirring for 3-4 minutes. Add the mushrooms and the onions. Cook in high heat for 5-6 minutes. Add the wine and after 2 minutes the tomatoes. Salt and pepper stirring carefully.
Transfer the onions and mushrooms in a pyrex and cook in a preheated oven at 390F for 45 minutes.