Doctrine many to many self referencing with extra columns
问题 i'm working with doctrine & i have some problem in many-to-many self referencing which has some extra fields. lets describe my scenario : i have a table named Drug , drugs can have conflicts with each other & this conflicts may appear under some conditions & may have some solutions. i've read doctrine documents about many-to-many relations & it's mentioned that it's not good for JoinTable to have some extra fileds. so what's the best solution for this problem? here is my solution, but i'm not