0
I’m doing a pre-registration system, and I came across a problem that bothers me a little bit:

As you can see in the picture, Curso has Disciplinas and Estudantes, only that each student needs to know in which Disciplinas he is enrolled, and each Disciplina need to know which Estudantes are registered in it.
I’ve thought about Estudante have a list of Disciplina or Disciplina have a list of Estudante, and also the two. The big problem is that the ways that I managed to think were a little coupled.
Could someone give a hint of what I can do, or a Design Pattern that solves this?
I believe that relationship N to N between student and discipline would solve your case
– Eduardo Sampaio