Priority: Major - P3
Resolution: Gone away
Affects Version/s: None
Fix Version/s: 5.0.1
Now we create a user that has 2 conversations each with 2 messages
Then, we need to change the message "two" with "six",
After all of this, why is it that it is not message "two" that is updated to "six", instead, it is "one" that now becomes "six" and "two" remains as "two"
I noticed that the update part of the code produces this following Moped update query :
The question is, if Core MongoDB does not serve locating inner array element index using "$" (positional operator), why does Mongoid produce this query on nested embeds_many (nested MongoDB arrays)? Why not just makes a class that has embeds_many and embedded_in at the same time as invalid?
Note: To test this I used Mongoid 4.0.0 rc1 and for the mongo shell, the version is 2.6.2