Work on polymorphic many-to-many relations.