summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/properties.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-07-16 20:09:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-07-16 20:09:38 -0400
commite45a4150fdd7e7f58dbe343706782a59a10d703b (patch)
tree735e55828deca4583fe7bf7fd4c6f9a7b8ecc48f /lib/sqlalchemy/orm/properties.py
parent747250587491ad76e30177b232daec5928f5b36d (diff)
downloadsqlalchemy-e45a4150fdd7e7f58dbe343706782a59a10d703b.tar.gz
- totally remove _entity_info and _extended_entity_info, replacing all usage
with inspect()
Diffstat (limited to 'lib/sqlalchemy/orm/properties.py')
-rw-r--r--lib/sqlalchemy/orm/properties.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py
index 6b1dd6462..044ba8e2c 100644
--- a/lib/sqlalchemy/orm/properties.py
+++ b/lib/sqlalchemy/orm/properties.py
@@ -11,7 +11,7 @@ mapped attributes.
"""
-from .. import sql, util, log, exc as sa_exc
+from .. import sql, util, log, exc as sa_exc, inspect
from ..sql import operators, expression
from . import (
attributes, mapper,
@@ -19,7 +19,7 @@ from . import (
dependency
)
from .util import CascadeOptions, \
- _orm_annotate, _orm_deannotate, _orm_full_deannotate, _entity_info
+ _orm_annotate, _orm_deannotate, _orm_full_deannotate
from .interfaces import MANYTOMANY, MANYTOONE, ONETOMANY,\
PropComparator, StrategizedProperty
@@ -409,7 +409,9 @@ class RelationshipProperty(StrategizedProperty):
def _criterion_exists(self, criterion=None, **kwargs):
if getattr(self, '_of_type', None):
- target_mapper, to_selectable, is_aliased_class = _entity_info(self._of_type)
+ info = inspect(self._of_type)
+ target_mapper, to_selectable, is_aliased_class = \
+ info.mapper, info.selectable, info.is_aliased_class
if self.property._is_self_referential and not is_aliased_class:
to_selectable = to_selectable.alias()