Contents:
Helper function to cleanly set the parent of an entity.
this – The entity whose parent to modify.
other – The new parent of the entity.