doctrine/mongodb-odm — Issue #192: Hydration of embedded documents does not cause an update
Author: anushr
Created: 2011-11-15 11:02:06+00:00
State: open

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.