Fix for doctrine/DoctrineModule#142

Quickfix for #142