Update the_model.rst

setParent is deprecated using setParentDocument instead.