Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of Burgov:
Url: #385
Message:
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);
or
$em->getRepository('Foo\BarBundle\Entity\PersonInterface')->findAll();
This PR sets metadata for the interface when metadata for a class is loaded that the interface is configured for