refactored to DoctrineIdentityEntity