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

        Guilherme Blanco created issue -
        Roman S. Borschel made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Hide
        Benjamin Eberlei added a comment - - edited
        Show
        Benjamin Eberlei added a comment - - edited I added a testcase for this, it works. http://github.com/doctrine/doctrine2/commit/d3419780f9daa3eaf0400c2b6fcee0234240b1de
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-RC1 [ 10091 ]
        Resolution Fixed [ 1 ]
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Marco Pivetta made changes -
        Comment [ This will be broken again if https://github.com/doctrine/doctrine2/pull/315 removes registration of metadata for proxy classes ]
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - A related Github Pull-Request [GH-315] was synchronize https://github.com/doctrine/doctrine2/pull/315
        Benjamin Eberlei made changes -
        Workflow jira [ 11697 ] jira-feedback [ 14522 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14522 ] jira-feedback2 [ 16386 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16386 ] jira-feedback3 [ 18639 ]
        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-315] was closed: https://github.com/doctrine/common/pull/315

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-727, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: