Fixed the doctrine adapter.
Merge pull request #34 from Lumbendil/master

Fixed the doctrine adapter.