Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-RC1
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
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.
I added a testcase for this, it works.
http://github.com/doctrine/doctrine2/commit/d3419780f9daa3eaf0400c2b6fcee0234240b1de