Sorry,
I didn't read well. destroySelf() only cleans up many-to-many
relationships; not one-to-many.

On Jul 9, 10:26 am, Kevin <[EMAIL PROTECTED]> wrote:
> I think your looking for:
> destroySelf()
> u = User.get(1)
> u.destroySelf()
>
> On Jul 9, 3:42 am, Ant <[EMAIL PROTECTED]> wrote:> Hi All,
>
> > I'm sure I found in the tg docs somewhere a snippet about deleting
> > related objects when you delete an object from the database. It was
> > something like a delete(self) method.
>
> > Can anyone point me to that information (or tell me if I was dreaming
> > it ;-) ), as I have a one to many relationship that needs cleaning up
> > once I delete the main object.
>
> > Thanks,
> > --
> > Ant...
>
> >http://antroy.blogspot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to