Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-RC1
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      The DDC-117 already has an implementation for this. We need a way to use the EntityRepository to query by foreign key or the related object instance.

      This should be in 2.0

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          Implemented, you can now do repository queries like:

          $post = $em->getRepository('Post')->findByCategory($categoryId);
          

          This does however NOT allow something like the following:

          $post = $em->getRepository('Post')->findByCategory($category);
          

          with $category being an instance of the entity. Only lookups per key are allowed.

          It also obviously only works on the owning side of an association.

          Show
          Benjamin Eberlei added a comment - Implemented, you can now do repository queries like: $post = $em->getRepository('Post')->findByCategory($categoryId); This does however NOT allow something like the following: $post = $em->getRepository('Post')->findByCategory($category); with $category being an instance of the entity. Only lookups per key are allowed. It also obviously only works on the owning side of an association.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: