On May 21, 2010, at 5:08 AM, James Neethling wrote:

> Hi All,
> 
> 
> When we append to the image.tags collection, the entity_tag table needs
> to know that the entity_type is 'image', but we can't seem to set that.
> 
> What is the standard way of dealing with this problem?
> 
> Is there the concept of a generic foreign key in SQLAlchemy?
> 
> Does anyone know if this database pattern has a formal name?


it is often called "polymorhpic association" and there is a full series of 
examples in examples/poly_assoc, as well as a link to a blog post regarding the 
subject in the __init__.py file.


-- 
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.

Reply via email to