Set the object's parent :
setParent(object, parent)
0 can be used to reset parenting :
setParent(object, 0)