summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-08-16 22:41:57 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-08-16 22:41:57 +0000
commit8e08949eb57592f4e3b3c1c8b92ef8935c150df7 (patch)
treef82b04cbb48b9f83f6a7174a7c02427c78ceb754 /lib
parent05ac1efe0d83a16e5a9ce235f2fec5d3b6765282 (diff)
downloadsqlalchemy-8e08949eb57592f4e3b3c1c8b92ef8935c150df7.tar.gz
- class.someprop.in_() raises NotImplementedError pending
the implementation of "in_" for relation [ticket:1140]
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/orm/properties.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py
index 3f61f3ebd..4056c2ff9 100644
--- a/lib/sqlalchemy/orm/properties.py
+++ b/lib/sqlalchemy/orm/properties.py
@@ -325,7 +325,10 @@ class PropertyLoader(StrategizedProperty):
def of_type(self, cls):
return PropertyLoader.Comparator(self.prop, self.mapper, cls)
-
+
+ def in_(self, other):
+ raise NotImplementedError("in_() not yet supported for relations. For a simple many-to-one, use in_() against the set of foreign key values.")
+
def __eq__(self, other):
if other is None:
if self.prop.direction in [ONETOMANY, MANYTOMANY]: