[DDC-727] Proxy instances should be able to get their correspondent ClassMetadata Created: 30/Jul/10  Updated: 19/May/14  Resolved: 15/Sep/10

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0-RC1
Security Level: All

Type: Bug Priority: Minor
Reporter: Guilherme Blanco Assignee: Roman S. Borschel
Resolution: Fixed Votes: 0
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.



 Comments   
Comment by Benjamin Eberlei [ 15/Sep/10 ]

I added a testcase for this, it works.

http://github.com/doctrine/doctrine2/commit/d3419780f9daa3eaf0400c2b6fcee0234240b1de

Comment by Benjamin Eberlei [ 31/Mar/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Benjamin Eberlei [ 01/Apr/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Benjamin Eberlei [ 01/Apr/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Benjamin Eberlei [ 04/Apr/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Benjamin Eberlei [ 06/Apr/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Benjamin Eberlei [ 07/Apr/12 ]

A related Github Pull-Request [GH-315] was synchronize
https://github.com/doctrine/doctrine2/pull/315

Comment by Doctrine Bot [ 19/May/14 ]

A related Github Pull-Request [GH-315] was closed:
https://github.com/doctrine/common/pull/315

Generated at Mon Oct 20 08:37:30 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.