Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-544

Extract Interface on Doctrine\ORM\Repository

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-ALPHA4
    • Fix Version/s: 2.0-BETA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      There should be an interface composed of all the methods on the Repository, so that in userland you can do something like:

      interface IMyRepository extends Doctrine\ORM\IEntityRepository
      {
      
      }
      
      class MyRepository extends Doctrine\ORM\EntityRepository implements IMyRepository
      {
      
      }
      

      That way in your code you could type-hint for IMyRepository, or for the EntityRepository Interface even and it would be indefinately easier to mock or replace the implementation.

        Activity

        Benjamin Eberlei created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Affects Version/s 2.0-ALPHA4 [ 10036 ]
        Component/s ORM [ 10012 ]
        Roman S. Borschel made changes -
        Fix Version/s 2.0-BETA2 [ 10050 ]
        Roman S. Borschel made changes -
        Fix Version/s 2.0-BETA3 [ 10060 ]
        Fix Version/s 2.0-BETA2 [ 10050 ]
        Roman S. Borschel made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 11274 ] jira-feedback [ 14401 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14401 ] jira-feedback2 [ 16265 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16265 ] jira-feedback3 [ 18518 ]

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Benjamin Eberlei
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: