DDC-727: Proxy instances should be able to get their correspondent ClassMetadata #895

Closed
opened 2026-01-22 12:54:26 +01:00 by admin · 9 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 30, 2010).

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.

Originally created by @doctrinebot on GitHub (Jul 30, 2010). 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.
admin added the Bug label 2026-01-22 12:54:26 +01:00
admin closed this issue 2026-01-22 12:54:27 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 15, 2010):

Comment created by @beberlei:

I added a testcase for this, it works.

d3419780f9

@doctrinebot commented on GitHub (Sep 15, 2010): Comment created by @beberlei: I added a testcase for this, it works. http://github.com/doctrine/doctrine2/commit/d3419780f9daa3eaf0400c2b6fcee0234240b1de
Author
Owner

@doctrinebot commented on GitHub (Sep 15, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Sep 15, 2010): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Mar 31, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Mar 31, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Apr 1, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (Apr 1, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Apr 1, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (Apr 4, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Apr 4, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (Apr 6, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Apr 6, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (Apr 7, 2012):

Comment created by @beberlei:

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

@doctrinebot commented on GitHub (Apr 7, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
Author
Owner

@doctrinebot commented on GitHub (May 19, 2014):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (May 19, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-315] was closed: https://github.com/doctrine/common/pull/315
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#895