Preheat the oven to 350 degrees F. Saute the onion & garlic in butter until soft & glossy. Add the cottage cheese, cheddar cheese, and bread crumbs. Add the eggs and green beans. Pour the mixture into a greased casserole dish. Bake at 350 degrees for 30-45 minutes. When done, the casserole should be firm to the touch and lightly browned on top.