summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2020-04-22 23:25:57 +0200
committerFederico Caselli <cfederico87@gmail.com>2020-05-05 19:52:53 +0200
commit04c990a011db5629f1a53a8e5af2080180ac8ec3 (patch)
treecb3f6c76e79ef1588ca650bb81eed85768dce61d /lib/sqlalchemy/sql
parent7acf9af1ce74a0bda4c4d29af7da543b5c42b3f8 (diff)
downloadsqlalchemy-04c990a011db5629f1a53a8e5af2080180ac8ec3.tar.gz
Add sync_backref flag in a relationship
Introduce :paramref:`_orm.relationship.sync_backref` flag in a relationship to control if the synchronization events that mutate the in-Python attributes are added. This flag is implied in a ``viewonly=True`` relationship. This supersedes the previous change #5149, that warned that ``viewonly=True`` relationship target of a back_populates or backref configuration would be disallowed. Fixes: #5237 Change-Id: I22c5ba28dcea22fc78a83e68e667140edffc515c
Diffstat (limited to 'lib/sqlalchemy/sql')
0 files changed, 0 insertions, 0 deletions