app/services/hyrax/collections/collection_member_service.rb
def remove_member(collection_id:, member:, user:)
          return member unless member?(collection_id: collection_id, member: member)
          member.member_of_collection_ids.delete(collection_id)
          member = Hyrax.persister.save(resource: member)
          publish_metadata_updated(member, user)
          member
        end
# Remove a collection or work from the members set of a collection, also removing the inverse relationship
# @param collection_id [Valkyrie::ID] the id of the parent collection
# @param member [Hyrax::Resource] the child collection or child work to be removed
# @return [Hyrax::Resource] updated member resource
Remove a collection or work from the members set of a collection, also removing the inverse relationship
Remove a collection or work from the members set of a collection also removing the inverse relationship
def remove_member(collection_id:, member:, user:)
          return member unless member?(collection_id: collection_id, member: member)
          member.member_of_collection_ids.delete(collection_id)
          member = Hyrax.persister.save(resource: member)
          publish_metadata_updated(member, user)
          member
        end
def remove_member ( collection_id : , member : , user : ) return member unless member? ( collection_id : collection_id , member : member ) member . member_of_collection_ids . delete ( collection_id ) member = Hyrax . persister . save ( resource : member ) publish_metadata_updated ( member , user ) member end
Remove a collection or work from the members set of a collection, also removing the inverse relationship
Remove a collection or work from the members set of a collection also removing the inverse relationship
updated member resource
updated member resource
Hyrax::Resource
collection_id
the id of the parent collection
the id of the parent collection
member
the child collection or child work to be removed
the child collection or child work to be removed
user