Quick-and-nasty commit just to make it work in symfony 2.0 with multiple connections