-
-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Remove MappedCollection converter; deprecate @converter"
- Loading branch information
Showing
4 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. change:: | ||
:tags: orm, bug | ||
:tickets: 3604 | ||
|
||
Removed the collection converter used by the :class:`.MappedCollection` | ||
class. This converter was used only to assert that the incoming dictionary | ||
keys matched that of their corresponding objects, and only during a bulk set | ||
operation. The converter can interfere with a custom validator or | ||
:meth:`.AttributeEvents.bulk_replace` listener that wants to convert | ||
incoming values further. The ``TypeError`` which would be raised by this | ||
converter when an incoming key didn't match the value is removed; incoming | ||
values during a bulk assignment will be keyed to their value-generated key, | ||
and not the key that's explicitly present in the dictionary. | ||
|
||
Overall, @converter is superseded by the | ||
:meth:`.AttributeEvents.bulk_replace` event handler added as part of | ||
:ticket:`3896`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters