Fix EntitySearchTransformer for Doctrine proxies