Dear @Mikhail_Gordin,
Not sure if I understand your point, does this post put you in the right direction
Many-to-many cross reference