summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-05 12:28:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-05 12:28:01 -0400
commit53d861792bb5cea700bc19e5125a76466018b1a5 (patch)
treecce648533dea4aaf365523b67066632a6dac8908 /lib/sqlalchemy/orm/attributes.py
parent83c9b0dcdcae0e517a3055eca218e6eda61fd1fe (diff)
downloadsqlalchemy-53d861792bb5cea700bc19e5125a76466018b1a5.tar.gz
- Dynamic attributes don't support collection
population - added an assertion for when set_committed_value() is called, as well as when joinedload() or subqueryload() options are applied to a dynamic attribute, instead of failure / silent failure. [ticket:1864]
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index ab31736ed..f91ff51f2 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -427,6 +427,7 @@ class ScalarAttributeImpl(AttributeImpl):
accepts_scalar_loader = True
uses_objects = False
+ supports_population = True
def delete(self, state, dict_):
@@ -481,6 +482,7 @@ class MutableScalarAttributeImpl(ScalarAttributeImpl):
"""
uses_objects = False
+ supports_population = True
def __init__(self, class_, key, callable_,
class_manager, copy_function=None,
@@ -547,6 +549,7 @@ class ScalarObjectAttributeImpl(ScalarAttributeImpl):
accepts_scalar_loader = False
uses_objects = True
+ supports_population = True
def __init__(self, class_, key, callable_,
trackparent=False, extension=None, copy_function=None,
@@ -637,6 +640,7 @@ class CollectionAttributeImpl(AttributeImpl):
"""
accepts_scalar_loader = False
uses_objects = True
+ supports_population = True
def __init__(self, class_, key, callable_,
typecallable=None, trackparent=False, extension=None,