octobercms/library — pull request #16 by that0n3guy (2014-05-30 17:26:12+00:00)
Title: Fix #15 - Added morphToMany and morphedByMany polymorphic relationship support

This adds many-to-many polymorphic relationship support.

The only "big" thing I did was move the BelongsToMany class into a trait since both BelongsToMany and MorphToMany would use it.