Hi!

I have a localization table, with a string_id, locale_id which make a
composite key (and of course the localized string)

I'd like to refer to it from various tables, based on a local field
which resembles 'string_id'.

If I wanted to do this with only one table referring to it, it would
be a simple one-to-many association, but now I'd have to put a foreign
key of each referral table (having always one filled), which may be a
solution, but certainly not the best. Making an intermediate associate
table suffers the same drawback, still more keys are needed.

Basically, I would like to have a field in these classes which have an
array of results from the localization table if I access it.

I'm using declarative, this probably matters.

Any ideas? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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.

Reply via email to