diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-22 14:28:21 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-22 14:35:31 -0500 |
commit | 26ba917996ec67ca24afa8c853f634edc08b06bb (patch) | |
tree | 5877a86f475b437090bf79c37ed18dae382a7f37 /lib/sqlalchemy/sql/schema.py | |
parent | b1f8c642301a96c084e4dec44db108db927a69d9 (diff) | |
download | sqlalchemy-26ba917996ec67ca24afa8c853f634edc08b06bb.tar.gz |
Raise for persistence casades set with viewonly=True
An error is raised if any persistence-related "cascade" settings are made
on a :func:`.relationship` that also sets up viewonly=True. The "cascade"
settings now default to non-persistence related settings only when viewonly
is also set. This is the continuation from :ticket:`4993` where this
setting was changed to emit a warning in 1.3.
Fixes: #4994
Change-Id: Ic70ff4d9980e422ade474c5a0ad49756c6b8a048
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
0 files changed, 0 insertions, 0 deletions