Bugfix to doctrine connection binding.