the keys in props will be: a. one for each column in the table that you are mapping to b. one for each key in the "properties" dictionary you sent to the mapper
if you can show me how you set up your tables/mappers, we can see how to link your dependent mappers together (and also if I see your use case more clearly maybe we'll come up with a better way to get at related mappers). HD Mail wrote: > Michael Bayer wrote: >> its not currently tracking mappers to tables, since you could have any >> number of mappers for a given table. a class' primary mapper is >> attainable, and you could also get the foreign key's mapper via the >> parent mapper ? >> >> Project.mapper.props['employee'].mapper >> > > I've tried this, but props doesn't seem to have this key. > > Huy >> >> On Jan 29, 2006, at 4:26 PM, Huy Do wrote: >> >>> Hi, >>> >>> Just wondering if there was something built into sqlalchemy which would >>> give me the mapper to a foreign key table. >>> >>> eg. >>> >>> Project.c.employee_id.foreign_key >>> >>> I could use a dict to map it myself and return the appropriate mapper >>> but was hoping for a shortcut. >>> >>> Thanks >>> >>> Huy >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through >>> log files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >>> _______________________________________________ >>> Sqlalchemy-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through log >> files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Sqlalchemy-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Sqlalchemy-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

