diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-09-26 18:52:44 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-09-27 15:43:51 -0400 |
| commit | fe8ddb71d98f9f8b5e8e5bcf54b4208a1dfad2fd (patch) | |
| tree | b82d4ded4537a81d8c3b2325077f9c950ce1dde7 /lib/sqlalchemy/sql | |
| parent | 54768815c6471c4378c5ac57aa7090c68dc079dd (diff) | |
| download | sqlalchemy-fe8ddb71d98f9f8b5e8e5bcf54b4208a1dfad2fd.tar.gz | |
Remove MappedCollection converter; deprecate @converter
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`.
Fixes: #3604
Change-Id: Id0f7bd2cec938f5975eb2ab94df9ba5754dd43c3
Diffstat (limited to 'lib/sqlalchemy/sql')
0 files changed, 0 insertions, 0 deletions
