work on self joining has clause on belongsToMany relationships.