I am using Doctrine with Symfony2. My config.yml file looks something like this:-
doctrine: dbal: driver: %data
I had have the same problem, and after reading this documentation from doctrine project page I decided to abandon solution with yml file.