Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1899

[GH-385] set metadata for interface to be able to fetch entites by interface name

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of Burgov:

      Url: https://github.com/doctrine/doctrine2/pull/385

      Message:

      using the new ResolveTargetEntity functionality we noticed we needed another feature:

      From the Symfony Bundle defining the interface, we'd like to be able to fetch entities by this very interface name, e.g.:

      ``` php
      $em->find('Foo\BarBundle\Entity\PersonInterface', 1);
      ```

      or

      ``` php
      $em->getRepository('Foo\BarBundle\Entity\PersonInterface')->findAll();
      ```

      This PR sets metadata for the interface when metadata for a class is loaded that the interface is configured for

        Activity

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13808 ] jira-feedback [ 14088 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14088 ] jira-feedback2 [ 15952 ]
        Benjamin Eberlei made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15952 ] jira-feedback3 [ 18199 ]
        Hide
        Doctrine Bot added a comment -

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

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

        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-1899, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: