Doctrine dbal adapter

This PR includes all commits from #48 and fixes all points that were pending in it.

However, I figured out that the adapter is broken in the case of a join (and the expectation were wrong in the test). See the my third commit making the test fail. I will try finding a solution but maybe @mtotheikle has an idea ?