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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: