Jira issue originally created by user @guilhermeblanco:
This should be possible:
$entity = $em->getReference('Foo' , 1);
$class = $em->getClassMetadata(get_class($entity)); // ClassMetadata if Foo entity
Currently it seems to throw an Exception.
Comment created by @beberlei:
I added a testcase for this, it works.
Issue was closed with resolution "Fixed"
A related Github Pull-Request [GH-315] was synchronize
Comment created by @doctrinebot:
A related Github Pull-Request [GH-315] was closed: