LearnBoost/mongoose — pull request #651 by sirlantis (2011-12-15 01:42:31+00:00)
Title: Fix for "Have conflicting mods in update"

I fixed "have conflicting mods in update" if an EmbeddedDocument and its containing Array were explicitly markModified (by splice for example).

```coffeescript
# childs = [doc1, doc2, doc3]

# causes "childs.0" to be dirty
childs[0].set "name", "Alex"

# causes "childs" to be dirty
childs.splice 1, 1, newEmbeddedDocument

# problem: Mongo-query now contains a $set for both
# paths, causing a conflict (i.e. MongoError: have conflicting mods in update)
```

I'll take a look into writing a test for this at this weekend.