Melt butter in a large pot over medium heat.
Add onions, garlic, bay leaves, thyme, salt and pepper, and cook until the onions are soft and caramelized (~25 minutes). Use a wooden spoon or mixing spatula to keep it from burning.
Add red wine and bring to a rolling boil.
Reduce heat and simmer until the wine has evaporated.Tyler has in his reciepe that this takes about 5 minutes. I call BS. I let it simmer for 10 minutes or so and then go on with the wine still there. I mean, its wine in tasty soup. Remove and discard bay leaves and thyme.
Dust with onions with four and stir it in. Cook for 10 minutes to get rid of the raw flour taste.
Add beef broth and bring back up to a simmer. Cook for about 10 minutes.
Add salt and pepper to taste.