Open bmaddy opened 10 years ago
I think member_ids
should always show the actual recorded member_ids
. If you want to filter on those that exist, make a new method that is member_ids_that_exist
This happens because remove_missing_members
gets called by members. A potential solution is to make these methods:
member_ids
: returns the member ids from the collection
member_ids_that_exist
: returns all member_ids
and filters out any that don't exist
members
: returns member models with nil
s for ones that have been deleted
members_that_exist
: returns only members that have not been deleted
The value of
.member_ids
changes when.members
is called for collections that have members who have been deleted.@jcoyne, would it be a problem to do a
.map{|pid| ActiveFedora::Base.exists?(pid)}
over themember_ids
? We could also make a new attribute.raw_member_ids
that contains the deleted pids.