OML is not a Class 2 limitation. See AMC/GM to Part MED. The correct ones are OSL, OPL or the new combined version ORL.
In the OSL situation it may still be possible for the pilot to fly solo, at least until April 2018 on an EASA aircraft, using a Group 1 GP Declaration.