I have simple models: People, Photos, Pair of photos.
An instance of "Pair of photos" should be linked with two "Photo" instances which are linked with the same "Human" instance.
I tried to implement it using ER model. In this case, "PhotoPair" can contain photos from different persons, so it is wrong.
So, how I can solve this problem? (without using triggers)