Hi all, as a nwbie to CakePHP, I experience problems understanding how the whole HABTM mechanism work.
So here is the point, I got 2 tables publishers and places related by a HABTM condition. First, I save the publisher data and then the place data and then I try to add the record to the HABTM table. I'm using this method: http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior but can't understand something. How can you save something in ths join table if you don't have saved it before in both tables? So, let's recap, I save the data from publisher I save the data from place and then try to use the habtmAdd function used in the link given. The data I got at this point is: Array ( [Publisher] => Array ( [id] => 40 [company_id] => 153 [first_name] => Martin [last_name] => Ratinaud [created] => 2007-08-08 18:51:21 [modified] => 2007-08-08 18:51:21 ) [Place] => Array ( [Place] => Array ( [0] => 13 ) ) ) but I don't manage to have anything in my join table. Thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
