Support Doctrine ODM

Quick attempt at supporting doctrine ODM. WDYT?