.. versionchanged:: 1.8

   Previously, assigning unsaved objects did not raise an error and could result in silent data loss.