DataMapper and Codeigniter - how to fully manage a many-to-many relationship
- by user252160
I have the following relationship
CType has many Field
Field has many Ctype
and of course the tables used are fields, ctypes, and ctypes_fields.
Normally, the ctypes_fields table should contain only ids referencing the other two tables. However, i'd like to put there a "options" field that will contain some content for the concrete instance only. I walked through all DataMapper tuts but I could'n find relevant info on how I could extract these specific values (the ones in the relation table)
Should I create a separate model for this relation table or there is a clever way to do this ?