I am still quite confused about expressing a "belongs to" relationship to more than one table at a time. Consider this: I am writing an app that will keep track of grades for students in multiple courses. So my final_grades table has a course id, a student id, and a final grade. So my understanding is that my final_grades table "belongs to" my "students" table and also to my "courses" table.
How does one write the model for such a case? Included in the question is how does one include more than one table, more than one foreign key, more than one condition, and possibly more than one field? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
