How to resolve "Mismatched entity and/or field definitions" / entity updates not done by database updates