Hi bingomanatee
This topic is covered in the manual, and extensively in this group's
archive. I have just had to refresh myself today on how it all work to
change some code.
So, have a look through the HABTM section of the Manual, then search the
group and I am sure you will get your answers.
Regards,
Langdon
bingomanatee wrote:
> Simple question: how do you save a HABTM association? do you have to
> cretae a model for the joining table or can you do if from one of the
> two related model classes?
>
> i.e., if I have a table TableA and a TableB and in TableA's model
> class I've created a HABTM association through tableC (= tablea_id:
> int, tableb_int), is there a method I can call on tableA that will
> save an association to tableB in tableC, or do I have to do it
> manually by cretaing a model class for tableC and manually inserting
> IDs into its fields for the tableB and tableA records?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---