From 940b2f6d70c8a3cdcbe4b8e56a459765fadfe879 Mon Sep 17 00:00:00 2001 From: evanchooly Date: Wed, 30 Oct 2019 23:45:33 -0400 Subject: [PATCH] updated migration docs --- Migration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Migration.md b/Migration.md index d22a522902c..1521d2f2da9 100644 --- a/Migration.md +++ b/Migration.md @@ -45,4 +45,6 @@ codecs defined for those types. * Lifecycle events on nested types are only called when instances of those embedded types are being persisted. * Keys are no longer allowed as fields. Use `@Reference` or `MorphiaReference` instead. * Polymorphic queries across collections are not currently supported. That is, if you have entities A and B each mapped to separate - collections, a query against type A will not automatically look in the collection mapped for B to find your entities. \ No newline at end of file + collections, a query against type A will not automatically look in the collection mapped for B to find your entities. +* The default option when calling `modify()` is to return the before state of the entity. This is a change to the default behavior of + the old, deprecated methods which was to return the new state. This brings Morphia's behavior inline with the server's. \ No newline at end of file