cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Stan <>
Subject Mapping fake FKs as relationships?
Date Sun, 10 Jan 2010 14:05:31 GMT

Is it possible to map fake foreign keys with CM?

In many DBs for webapps there seem to be quite a few tables (for entities like Tags, Comments,
Attachments, Events) to have relationships to many other tables, and instead of a FK, a combination
of two fields is used (target_table_name and target_row_id).

I know that other ORMs (like ActiveRecord from RoR) have this feature, but I'm not sure about

Thanks in advance,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message