Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-727

Proxy instances should be able to get their correspondent ClassMetadata

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Guilherme Blanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: