MtVRN2 is a Polycomb VRN2-like gene which represses the transition to flowering in the model legume Medicago truncatula.