This is the scenario:
I have two tables i.e Student and Guardian. They all have one form as stated below
I want when the form is submited. It creates a student gets the student Id and also adds the guardian data along with the student id.
The relationship between the student and guardian is a hasMany Relationship.