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

          People

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

            Dates

            • Created:
              Updated: