The apprentice is affiliated to the general social security scheme for all risks and to the supplementary pension scheme set up for the benefit of non-tenured employees of the State and local authorities or for the benefit of employees of the other legal entities governed by public law mentioned in article L. 6227-1. Validation of entitlement to old-age insurance is carried out in accordance with the conditions set out in the last paragraph of article L. 6243-3.