You might want to have a look at Adjacency List Relationships:
http://www.sqlalchemy.org/docs/04/mappers.html#advdatamapping_relatio...
Thanks for your reply.
But that is what I already looked at and tried to use, but it didn't
work.
I think the problem is, that there are two columns (mother
Ok, I just read about the relation option foreign_keys... I think,
that might be the 'magic' of the whole thing^^
sry, for bothering you,
jawa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To
thanks, I'll try that, if the relation option foreign_keys didn't do
it.
I'd like to get normal properties with normal getter and setter or
append methods. I use sqlalchemy because I don't want to write all
these methods by myself ;)
greetz,
jawa
On 9/27/07, jawarumnur [EMAIL PROTECTED] wrote:
thanks, I'll try that, if the relation option foreign_keys didn't do
it.
I think you don't need foreign_keys. The docs for foreign_keys states
that it should be used in conjuction with primaryjoin only if SA can
not guess the FK from the join
mh, you're right.
I'm not yet very familiar with sqlalchemy since this is my first try.
I thought about a WHERE clause additional to the join condition to
differentiate the genders but probably that won't work either.
I'll try to use python properties then, I think.
thanks,
jawa