Martha Stewart Magazine: “Onions emit allicin, an antibacterial gas, which kills the beneficial urease bacteria,” says Linda Langelo, horticulture specialist at Colorado State University. The urease is what beans need to fix nitrogen. Planting these two vegetables together can inhibit the growth of beans in their early stages, and produce smaller, weaker crops.
link