When the nerve gets pinched in the cubital tunnel, the syndrome occurs.