Dog in the manger has 2 different meanings across 1 category:
Noun
someone who prevents you from enjoying something that they themselves have no need for
Someone who denies to others something that he or she cannot use.