> > Maybe I'm misunderstanding you but if a foreignkey points to an object
> > that is deleted, the object that refers to the deleted object will not
> > be:
>
>    This has nothing with RelatedJoin. You case is much simpler to fix:
>
>
> > class building( SQLObject ):
> >     city = ForeignKey( 'city' )
>
>     city = ForeignKey( 'city' , cascade=True)

Thanks a lot, this is really great, I didn't know about the cascade
option, I was always overriding destroySelf. And of course you are
right, this is specific to MultipleJoin and the OP was talking about
RelatedJoin.

Thanks again.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to