Adding test and patch for updating only fields that has changed in Model::save().
Merge pull request #1121 from koushki/bug/entityfix

Model::save() should only save updated fields