I wonder how easy this will be to debug once it's used in a non trivial production environment.<p>All the other "we use thing relates to thing because structured data slows us down" I used were nightmares.
So the relations must be stored somewhere. I'm guessing a join table that includes the table names of each record, ie a 'polymorphic' join table?