diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-12-14 13:49:11 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-12-14 15:38:32 -0500 |
commit | 2bac535f506dd68595d64d6cdf21e2d4937c2c9f (patch) | |
tree | 7e05f77fa8fccbd63c2d1488278af6e5f56c325d /lib/sqlalchemy/sql/compiler.py | |
parent | a8d76cff39dbaf6354d42d35cd68332df469d124 (diff) | |
download | sqlalchemy-2bac535f506dd68595d64d6cdf21e2d4937c2c9f.tar.gz |
warn when backref will replace existing userland descriptor
A warning is emitted if a backref name used in :func:`_orm.relationship`
names an attribute on the target class which already has a method or
attribute assigned to that name, as the backref declaration will replace
that attribute.
Fixes: #4629
Change-Id: I0059b35ce60f43b0f3d8be008f12411154484ea1
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions