Hello everyone, I have a concrete question about using declarative mapper in my project. There are three tables: user, services and objects Class Services(Base): user_id = Column("user_id", Integer, ForeignKey ("user_table.user_id")) ..........
Class Objects(Base): user_id = Column("user_id", Integer, ForeignKey ("user_table.user_id")) ........... Class User(Base): ........... service = relation("Objects", backref = "user") object = relation("Services", backref = "user") When i there appeared some errors. I wonder whether declarative mapper supports two "relation" in a single class. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---