Hello everyone,
I'm trying very hard to understand the relationship between the assignment related tables in Moodle and after I spent like 2 days to try and figure out how it's been designed I decided to ask the community in the hope that someone will reply.
What I'm trying to do is to locate a particular assignment in a course in our Moodle site and import some student grades and feedback there. In order to do this correctly I need to identify the ID of the assignment in order to map the data accordingly in my csv file. And here's comes the challenge..!
mdl_assign gives me the assignment id (4323) based on the course id (2420).
I was expecting to get results from other tables based on the same id but this is not the case.
Therefore, I'm trying to understand how the following tables are related to each other:
mdl_assign
mdl_assignment
mdl_assignfeedback_comments
mdl_assignment_submissions
I looked in mod/assignment/db/install.xml but I can see only the structure of 2 tables and I'm there's something I'm missing here.
I would be extremely grateful if someone could help me with this!
Thank you in advance and have a lovely weekend!