[sqlalchemy] No attribute of child relation contained in parent object

2011-01-26 Thread cornelinux
Hi, I am just starting to use the relation between two tables. The problem started with the child data not being written to the child tables. I played around, and now I am totally confused. Maybe someone can shed some light on this. I got these tables: {{{ user_table = sa.Table('User',

Re: [sqlalchemy] No attribute of child relation contained in parent object

2011-01-26 Thread Cornelius Kölbel
Hi List, ok, i figured it out. My understanding of the documentation was a bit different. I really worked out this way. But Thekey in the properties is the attribute name, that will be added to the parent object. So doing this orm.mapper(User, user_table, properties={