Put stock cubes in a pan and dissolve in boiling water. Add onion and rice, and simmer for a further 5 minutes until all the flavours have combined. Serve with crusty bread.