Update array of objects using Morphia
===

Helo!
I've got this JSON structure:

   

     {
        "author" : "some author"
        "comment" : [{
              "text" : "some text",
              "date" : "some date",
           }, {
               "text" : "some text",
              "date" : "some date",
           }]
    }
And I need for example to check all comments date. I wrote this code:

    UpdateOperations<Blog> ops;
    Query<Blog> updateQuery = ds.createQuery(Blog.class).disableValidation().filter("comment.$.date", "some date").enableValidation();
     	
    ops = ds.createUpdateOperations(Blog.class).disableValidation().set("comment.$.text", "new text").enableValidation();
But it doesn't work. Could you tell me how to deal with array of objects in morphia?