update(['allocation_id' => $allocation->id]); // The allocation row is unchanged, but a loaded server relation still holds the old primary. return $allocation->unsetRelation('server'); } }