Cut the bananas into small even cubes, also the onions.
Bring everything to the boil in a saucepan, then turn the stove down and simmer for about 30-40 minutes until it becomes a bit creamy. The bananas must be almost overcooked.
When it is creamy enough, pour it hot into twist-off glasses, turn it off immediately and turn it upside down.