Adds a new behavior to handle many_to_many associations.