Article L6222-19 of the French Labour Code
If the apprentice obtains the diploma or qualification being prepared for, the apprenticeship contract may be terminated, at the apprentice’s initiative, before the term initially set, provided the employer has been informed.