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

        Terje Bråten created issue -
        Terje Bråten made changes -
        Field Original Value New Value
        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?
        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?
        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
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Fix Version/s 2.5 [ 10522 ]
        Fix Version/s Git Master [ 10100 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-2061, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: