How onion fly causes damage in onion?

onion

Larvae of a white colour enter the bulb and feed inside. Plants grow weak and yellow as a result of this. This pest persists in the bulb as well. As a result of the damage, onion bulbs in storage go rotting. The infested bulbs gives out an unpleasant odour. As a result, the infestation begins in the field and continues in the storage.