doctrine/mongodb-odm — pull request #193 by anushr (2011-11-15 11:27:46+00:00)
Title: Hydration of embedded documents does not cause an update

I have a collection User documents, each with an embedded Address (EmbedOne). I'm trying to update an existing User instance using $dm->getHydratorFactory()->hydrate($user, $data). The hydration does set the new data correctly into the User and embedded Address objects. However, if I do a $dm->flush(), only the User data gets updates; the Address data does not update.

Added a failing test for hydration persistence on embedded documents.