Migration
should overwrite entity state instead of merging new state into old one
#1403
Labels
Migration
should overwrite entity state instead of merging new state into old one
#1403
Migration
allows to update one or more entities in the repository by applying the user-supplied state mapping.At the moment, the
newState
returned as the result of the mapping is propagated to the entity usingmergeFrom(...)
call on the old state. This causesrepeated
and message-type fields to be overwritten only partially.The
Migration
logic should be changed so that thenewState
completely overwrites the old one within the migration transaction.See this line.
The text was updated successfully, but these errors were encountered: