Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Patch attached:
      Yes

      Description

      Multi Parameter in Update Method

        Activity

        Hide
        Juri Kuehn added a comment -

        Hi Hasan, thanks for your commit. I applied the code and wrote tests for it. It turned out there was a bug in morphia, update should always update all matched instances: http://code.google.com/p/morphia/issues/detail?id=247

        I added an updateFirst method in case only one entity should be updated (see also morphia api: http://morphia.googlecode.com/svn/site/morphia/apidocs/com/google/code/morphia/Datastore.html#updateFirst%28com.google.code.morphia.query.Query,%20com.google.code.morphia.query.UpdateOperations,%20boolean,%20com.mongodb.WriteConcern%29)

        Show
        Juri Kuehn added a comment - Hi Hasan, thanks for your commit. I applied the code and wrote tests for it. It turned out there was a bug in morphia, update should always update all matched instances: http://code.google.com/p/morphia/issues/detail?id=247 I added an updateFirst method in case only one entity should be updated (see also morphia api: http://morphia.googlecode.com/svn/site/morphia/apidocs/com/google/code/morphia/Datastore.html#updateFirst%28com.google.code.morphia.query.Query,%20com.google.code.morphia.query.UpdateOperations,%20boolean,%20com.mongodb.WriteConcern%29 )

          People

          • Assignee:
            Juri Kuehn
            Reporter:
            Hasan Ozgan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: