Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2061

Matching Criteria on a PersistentCollection only works on OneToMany associations

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Git Master
    • Fix Version/s: 2.5
    • Component/s: ORM
    • Security Level: All
    • Labels:

      Description

      What is needed to make it also work for ManyToMany associations?

      May be a better fallback would be do an ArrayCollection->matching() instead of just giving a runtime exception?

      Is this something that is difficult to implement?

        Activity

        Hide
        Guilherme Blanco added a comment -

        This is already possible on 2.5 branch (dev-master for now).
        Tracked commit history and found this commit hash as the one that allowed this:

        https://github.com/doctrine/doctrine2/commit/160b07d1e3107b9a8210fc73d456305b03146c39

        Show
        Guilherme Blanco added a comment - This is already possible on 2.5 branch (dev-master for now). Tracked commit history and found this commit hash as the one that allowed this: https://github.com/doctrine/doctrine2/commit/160b07d1e3107b9a8210fc73d456305b03146c39

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Terje Bråten
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: