Description
Note that this is a WRONG usecase, objects should not be operated like this but, the following code:
BaseObject object = document.getObject(objClass, objNumber); object.setName(newParentReference);
has as side effect the change of the reference of document, since 2.4M2.
namely
document.getReference()
will be newParentReference on serialization.
Before, all it was doing was to change the parent document of the object ("move" the object in another document), so, even if the usecase is deprecated, it should not have this side effect since it's breaking compatibility.