Doctrine entity resolver fix