On Wed, 2 Mar 2005 13:54:09 -0500, Lon Baker
<lon-JCsVN+o+Xp98UrSeD/g0lQ@public.gmane.org>
wrote:> Does has_and_belongs_to_many know to delete an object when the last
> reference to it is removed?
>
> In my case I have Receiver <<->> Message (with a join table of
course),
> but have noticed that when the last receiver removes a message from the
> association the message still exists.
>
> Before adding code to manage this situation I want to check to see if I
> am missing something?
I believe if you delete a Receiver or Message, the references are removed.
However, if you delete all the references, the objects are still there.
--
rick
http://techno-weenie.net