Displaying 1 result from an estimated 1 matches for "thing_table_name".
2006 Aug 12
1
has and belongs to many different?
Is there such a thing? I am thinking of an application that has
something like this:
1. person has many things - there is a ''persons'' table
2. the things he has are stored in a table that is something like this
person_id, thing_table_name, thing_id
For example, it may map to
person1, books, 23 #Person 1 owns book 23
person1, books, 25 #Person 1 owns book 25
person1, chair, 23 #Person 1 owns chair 23
person1, books, 30
person2, books, 19
person2, books, 31 #Person 2 owns book 31
... and so on..
3. A number of...