In our cms we have a table for tracking all objects. It accepts record id's from different objects (images, videos, posts, articles, etc. etc.) and maps them against their object type.
We are upgrading a lot of our system to using ORM and thus I need to now map the relationship from objects to their object record. (in example below I need to map an object property to the image component)
Object:
ID,
recordID,
classID
image:
ID,
...
so
object.recordID = image.ID where classID = 'image'
I'm not sure how to set this one-to-one relationship up as it is not primary key to primary key. And it is also not a unique foreign key association since its a multicolumn uniqueness constraint.
Is this not something that coldfusion can handle at this time?