The generated ID is returned normally in the field. But a Master/Detail relationship using objects is not by ID, but by instance.
TXDataWebDataset doesn't support Aurelius entities, so I'm not sure exactly what you are trying ask. In TMS Web Core, objects are regular JavaScript objects, and the master/detail relationship supported by TXDataWebDataset is at object level, i.e., your JavaScript object representing TDOC_MOV_MAG_T should have a Items property which holds an array of item/child objects.