{"action":"opened","issue":{"url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/72","labels_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/72/comments","events_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/72/events","html_url":"https://github.com/projecthydra-labs/activefedora-aggregation/issues/72","id":106098151,"number":72,"title":"Deleting an object should remove the SolrDocument of the proxy","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-11T21:31:55Z","updated_at":"2015-09-11T21:31:55Z","closed_at":null,"body":"https://github.com/projecthydra-labs/activefedora-aggregation/blob/master/lib/active_fedora/aggregation/association.rb#L24\r\n\r\nIf the target object is deleted, I believe that Fedora removes the proxy object automatically.  But ActiveFedora doesn't know this happened, so the proxies solr document was never removed.  Thus `members_ids.size` can return the old count (say 5) instead of the accurate count that `members.size` would return (4)."}}