I saw this example: http://wiki.sqlobject.org/joinexample.html of an 
object being joined to itself in a parent/child relationnship, but I 
have not managed to find a way to set the parent object after the object 
has been added.

E.g. instead of using this:

rBirds = prodcats.new(name="birds", longname="Birds", parent=rPets)
is this possible?

rBirds = prodcats.new(name="birds", longname="Birds")
rBirds.parent = rPets

I don't necessarily want to define a parent at the same time as I define 
the object.

According to my tests, this isn't possible, but as I'm new to SQLObject, 
is there something I'm missing?

Thanks,

Richard.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to