]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A warning is emitted in the case of multiple relationships that
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 18 Oct 2014 21:56:13 +0000 (17:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 19 Oct 2014 04:01:50 +0000 (00:01 -0400)
commit55cad302cee51aff6d2bcda2f2f963004d54e6de
tree8ed5eba6416b26982dd3d42f81278a91d47410f0
parenta7c1258d0340e94fd12e1b8aaa82ca3e282fb61d
- A warning is emitted in the case of multiple relationships that
ultimately will populate a foreign key column in conflict with
another, where the relationships are attempting to copy values
from different source columns.  This occurs in the case where
composite foreign keys with overlapping columns are mapped to
relationships that each refer to a different referenced column.
A new documentation section illustrates the example as well as how
to overcome the issue by specifying "foreign" columns specifically
on a per-relationship basis.
fixes #3230
doc/build/changelog/changelog_10.rst
doc/build/orm/relationships.rst
lib/sqlalchemy/orm/relationships.py
test/orm/test_assorted_eager.py
test/orm/test_joins.py
test/orm/test_relationships.py