[DDC-727] Proxy instances should be able to get their correspondent ClassMetadata Created: 30/Jul/10 Updated: 07/Apr/12 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 |
| Comment by Benjamin Eberlei [ 01/Apr/12 ] |
|
A related Github Pull-Request [GH-315] was synchronize |
| Comment by Benjamin Eberlei [ 01/Apr/12 ] |
|
A related Github Pull-Request [GH-315] was synchronize |
| Comment by Benjamin Eberlei [ 04/Apr/12 ] |
|
A related Github Pull-Request [GH-315] was synchronize |
| Comment by Benjamin Eberlei [ 06/Apr/12 ] |
|
A related Github Pull-Request [GH-315] was synchronize |
| Comment by Benjamin Eberlei [ 07/Apr/12 ] |
|
A related Github Pull-Request [GH-315] was synchronize |