Hi Guys,
I have a Parent - Child (1:N) relationship between Class and Exam table.
Class -> Exam
1 : N
Now since a "Class" could have millions of "Exam" I don't want have an
attribute on Class called exams. Instead I only want an attribute on "Exam"
to the parent "Class".
Can we do this in SA ?
Will do the below do the job ? Just asking out of curiosity without testing.
mapper(Exam, examtable, properties = {class: relation(Class)})
Thx
- A
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---