Use new 0.8 features in DoctrineModule

Depends on https://github.com/doctrine/DoctrineModule/pull/233 for tests to pass.