diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-16 22:41:57 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-16 22:41:57 +0000 |
| commit | 8e08949eb57592f4e3b3c1c8b92ef8935c150df7 (patch) | |
| tree | f82b04cbb48b9f83f6a7174a7c02427c78ceb754 /lib | |
| parent | 05ac1efe0d83a16e5a9ce235f2fec5d3b6765282 (diff) | |
| download | sqlalchemy-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.py | 5 |
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]: |
