[sqlalchemy] InvalidRequestError: get() can only be used against a single mapped class.

2011-12-28 Thread Kent
Was it your intention to no longer allow this type of query().get()? session.query(cls.orderid).get(orderid) I get InvalidRequestError: get() can only be used against a single mapped class. but the wording is such that I'm not sure you intended to limit that use case (there is only a single

Re: [sqlalchemy] InvalidRequestError: get() can only be used against a single mapped class.

2011-12-28 Thread Michael Bayer
On Dec 28, 2011, at 11:34 AM, Kent wrote: Was it your intention to no longer allow this type of query().get()? session.query(cls.orderid).get(orderid) it was ! yes. I get InvalidRequestError: get() can only be used against a single mapped class. but the wording is such that I'm not