matias-yii Posted September 27, 2014 Share Posted September 27, 2014 Supose we have to tables: exams and students where one student could have many exams. To make it simple , student has 2 fields studentId, name. Exams and Students are related by studentId. On exam form i would like to add a filed with the name of the student and then i would like to save it using models. It's that possible? Link to comment Share on other sites More sharing options...
Larry Posted October 14, 2014 Share Posted October 14, 2014 Yes, this is definitely possible. You'll have three tables, though: exams, students, and student_exams. Link to comment Share on other sites More sharing options...
Recommended Posts