error in http://www.sqlalchemy.org/docs/adv_datamapping.myt#advdatamapping_resultset

Issue #386 resolved
Former user created an issue

There is an error in the documentation at

http://www.sqlalchemy.org/docs/adv_datamapping.myt#advdatamapping_resultset

userlist = User.mapper.instances(c)

instances method needs the session

Comments (3)

  1. Mike Bayer repo owner

    actually the official home of instances() is on query now:

    session.query(cls).instances(result, *othermappers)
    

    eventually i should allow *othermappers to allow classes too.

    updated docs in changeset:2147

  2. Log in to comment