Fix Doctrine ODM primary key guesser