From: Ksenia M. <kse...@gm...> - 2004-12-16 11:54:48
|
I must be doing something wrong here, because the documentation example doesn't work for me eather. The problem is that the clause "AND person.id = employee.id" is never added, even when I added search queries for both tables... Here are my class definitions (slightly different names from the doc, but with the same structure): class Person(SQLObject): _inheritable = 1 name = StringCol(length=300, notNone=True) class Author(Person): texts = MultipleJoin('TextAuthor', addRemoveName='Text') And this simple code: Author.select(Person.q.name == 'Ksenia') produces this: SELECT author.id, author.child_name FROM person, author WHERE (person.name = 'Ksenia') Any help would be greatly appreciated :( -- Ksenia. |