this is a known issue in ticket 185; youd have to call get([employee_id, employee_id]).    I have just committed a very small hack in 1508 that will work around this, though (by making an assumption about the given id), so give that a try.


On May 25, 2006, at 8:28 AM, jürgen Kartnaller wrote:

     employee_id = c.employees[0].person_id

+        employee_cls = c.employees[0].__class__

+

+        session.flush()

+        session.clear()

+

+        e = session.query(Person).get(employee_id)

+        e = session.query(employee_cls).get(employee_id)

+

+        c = session.query(Company).get(id)

+


Reply via email to