How to move object by another object's world position

i want to move door when i increase Length of house
Please help me out

Let’s assume the door is a child object of the house. If you scale the house along a certain axis, it should also affect all child objects.

Can you please demonstrate with a live example how this looks in your case?