- $table_editor->describe('eduid', 'formation', true);
- $table_editor->describe('degreeid', 'niveau', true);
+ $table_editor->describe('eduid', 'id formation', true);
+ $table_editor->describe('degreeid', 'id niveau', true);
+
+ // Adds fields to show the names of education
+ $table_editor->add_option_table('profile_education_enum','profile_education_enum.id = eduid');
+ $table_editor->add_option_field('profile_education_enum.name', 'edu_name', 'formation', null, 'degreeid');
+ // Adds fields to show the names of degrees
+ $table_editor->add_option_table('profile_education_degree_enum','profile_education_degree_enum.id = t.degreeid');
+ $table_editor->add_option_field('profile_education_degree_enum.degree', 'degree_name', 'niveau');
+