Hi,
I have HABTM relation between "Event" and "Category" models. But in the bridge table, "categories_events" table, there is an extra field called "is_primary"; meaning and Event is belong to 1 primary category and many secondary categories.
I deployed 1 select box named "primary_event" and checkboxes named "seconday_event[]".
When I submit the form the data comes up like this. $this->data['Event']['primary_event'] -> 4; $this->data['Event']['secondary_event'] -> array(1,3,5);
After that, how do I feed those data into the format that Cake recognize and which Model's save function do I call? Please be advised that "is_primary" field must be set to 1 for 'primary_event' row.
Thanks, Moe