modified for use with Doctrine MongoDB ODM