def add_member_objects(new_member_ids)
      Array(new_member_ids).collect do |member_id|
        member = ActiveFedora::Base.find(member_id)
        message = Hyrax::MultipleMembershipChecker.new(item: member).check(collection_ids: id, include_current_members: true)
        if message
          member.errors.add(:collections, message)
        else
          member.member_of_collections << self
          member.save!
        end
        member
      end
    end
def add_member_objects(new_member_ids)
      Array(new_member_ids).collect do |member_id|
        member = ActiveFedora::Base.find(member_id)
        message = Hyrax::MultipleMembershipChecker.new(item: member).check(collection_ids: id, include_current_members: true)
        if message
          member.errors.add(:collections, message)
        else
          member.member_of_collections << self
          member.save!
        end
        member
      end
    end
Add member objects by adding this collection to the objects' member_of_collection association.
 @param [Enumerable<String>] the ids of the new child collections and works collection ids
 Valkyrie Version: Wings::CollectionBehavior#add_collections_and_works aliased to #add_member_objects
                   lib/wings/models/concerns/collection_behavior.rb