can't find the target entity. Explain that the
path must be from one of the root entities.
is attempted of a subclass that is not polymorphic
against the supertype. [ticket:2063]
+ - Still more wording adjustments when a query option
+ can't find the target entity. Explain that the
+ path must be from one of the root entities.
+
- sql
- Restored the "catchall" constructor on the base
TypeEngine class, with a deprecation warning.
if raiseerr:
raise sa_exc.ArgumentError(
"Can't find property '%s' on any entity "
- "specified in this Query." % (token,)
+ "specified in this Query. Note the full path "
+ "from root (%s) to target entity must be specified."
+ % (token, ",".join(str(x) for x in query._mapper_entities))
)
else:
return None