]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Improved checking for an existing backref name conflict during
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 Mar 2013 18:51:54 +0000 (13:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 Mar 2013 18:51:54 +0000 (13:51 -0500)
commit75a3f84e5f9c3be645be2ec8906e63b27e9847e5
tree6185577783e17e8c73dc208af62552f05a57cb1b
parentb83dd4dc2200bece2896a125be6d4f0911669d15
- Improved checking for an existing backref name conflict during
mapper configuration; will now test for name conflicts on
superclasses and subclasses, in addition to the current mapper,
as these conflicts break things just as much.  This is new for
0.8, but see below for a warning that will also be triggered
in 0.7.11.
- Improved the error message emitted when a "backref loop" is detected,
that is when an attribute event triggers a bidirectional
assignment between two other attributes with no end.
This condition can occur not just when an object of the wrong
type is assigned, but also when an attribute is mis-configured
to backref into an existing backref pair.  Also in 0.7.11.
- A warning is emitted when a MapperProperty is assigned to a mapper
that replaces an existing property, if the properties in question
aren't plain column-based properties.   Replacement of relationship
properties is rarely (ever?) what is intended and usually refers to a
mapper mis-configuration.   Also in 0.7.11.
[ticket:2674]
doc/build/changelog/changelog_07.rst
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
test/orm/test_attributes.py
test/orm/test_compile.py
test/orm/test_mapper.py