On Sep 29, 10:13 am, red <[EMAIL PROTECTED]> wrote:
> It's a bit closer, but now I get in debug:
>
> SELECT COUNT(id) AS count FROM `users` WHERE `id` = 5
> SELECT COUNT(id) AS count FROM `users` WHERE `id` = 5
> UPDATE `users` SET `id` = 5 WHERE `id` IN (5)
> DELETE FROM `users_users` WHERE user_id = '5'
> INSERT INTO `users_users` (user_id,friend_id) VALUES (5,14)
>
> And of course the DELETE command removes my earlier connections of id
> 5...

... which is by design, otherwise how could you (easily) delete an
association. There are a few posts/threads/bakery articles/etc. around
with "working with habtm" in the title, after a quick google I am sure
you will find the info you are seeking ;).

AD


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to