summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/dynamic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-04 18:32:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-04 18:32:38 -0400
commite07f4b9837455971ce95a1f306dc80a3f716ed64 (patch)
treed992c22193dc99526fa82c3a2024579690ca3724 /lib/sqlalchemy/orm/dynamic.py
parent79f26dbff98a3e5625c94fbea5bfb35a2d7016cf (diff)
downloadsqlalchemy-e07f4b9837455971ce95a1f306dc80a3f716ed64.tar.gz
- [feature] A warning is emitted when a reference
to an instrumented collection is no longer associated with the parent class due to expiration/attribute refresh/collection replacement, but an append or remove operation is received on the now-detached collection. [ticket:2476]
Diffstat (limited to 'lib/sqlalchemy/orm/dynamic.py')
-rw-r--r--lib/sqlalchemy/orm/dynamic.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/dynamic.py b/lib/sqlalchemy/orm/dynamic.py
index d2cb0ab05..6d532e669 100644
--- a/lib/sqlalchemy/orm/dynamic.py
+++ b/lib/sqlalchemy/orm/dynamic.py
@@ -38,6 +38,7 @@ class DynamicAttributeImpl(attributes.AttributeImpl):
uses_objects = True
accepts_scalar_loader = False
supports_population = False
+ collection = False
def __init__(self, class_, key, typecallable,
dispatch,