Heat half the olive oil in a large saucepan, then gently cook the onions for 5 mins, until soft but not coloured. Add the pumpkin or squash to the pan, then carry on cooking for 8-10 mins, stirring occasionally until it starts to soften and turn golden.