Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-722

EntityRepository::find(One?)By should also support Associations

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-RC1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      We should allow EntityRepository to also support associations fetching (when fetched Entity is the owning side).

      $employee = $em->getRepository('Employee')->findByEmployer($em->getReference('Employer', $id));
      

        Activity

        Hide
        Guilherme Blanco added a comment -

        Already implemented.

        Show
        Guilherme Blanco added a comment - Already implemented.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Guilherme Blanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: