Skip to content


DDC-1899: [GH-385] set metadata for interface to be able to fetch entites by interface name #2564

doctrinebot opened this Issue · 1 comment

2 participants


Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of Burgov:

Url: #385


using the new ResolveTargetEntity functionality we noticed we needed another feature:

From the Symfony Bundle defining the interface, we'd like to be able to fetch entities by this very interface name, e.g.:

$em->find('Foo\BarBundle\Entity\PersonInterface', 1);



This PR sets metadata for the interface when metadata for a class is loaded that the interface is configured for


Comment created by @doctrinebot:

A related Github Pull-Request [GH-385] was closed:

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.