Heat oven to 375°F. Spray shallow casserole dish with vegetable cooking spray. In large bowl, toss together squash, apple, garlic, parsley, thyme, salt, pepper, and flour.
Transfer mixture to prepared casserole dish, and drizzle olive oil over top. Bake 1 hour and 45 minutes.