{"action":"opened","issue":{"url":"https://api.github.com/repos/etoile/CoreObject/issues/20","labels_url":"https://api.github.com/repos/etoile/CoreObject/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/etoile/CoreObject/issues/20/comments","events_url":"https://api.github.com/repos/etoile/CoreObject/issues/20/events","html_url":"https://github.com/etoile/CoreObject/issues/20","id":89648286,"number":20,"title":"-[COEditingContext deletedPersistentRoots] doesn't return persistent roots marked deleted","user":{"login":"ericwa","id":239161,"avatar_url":"https://avatars.githubusercontent.com/u/239161?v=3","gravatar_id":"","url":"https://api.github.com/users/ericwa","html_url":"https://github.com/ericwa","followers_url":"https://api.github.com/users/ericwa/followers","following_url":"https://api.github.com/users/ericwa/following{/other_user}","gists_url":"https://api.github.com/users/ericwa/gists{/gist_id}","starred_url":"https://api.github.com/users/ericwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericwa/subscriptions","organizations_url":"https://api.github.com/users/ericwa/orgs","repos_url":"https://api.github.com/users/ericwa/repos","events_url":"https://api.github.com/users/ericwa/events{/privacy}","received_events_url":"https://api.github.com/users/ericwa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T19:57:23Z","updated_at":"2015-06-19T19:57:23Z","closed_at":null,"body":"When you create a new `COEditingContext` and call `-deletedPersistentRoots`, it doesn't return those persistent roots marked deleted on disk. This is contrary to the docs for `-deletedPersistentRoots` which say:\r\n```\r\n/**\r\n * Returns persistent roots marked as deleted on disk, excluding those that\r\n * are pending undeletion, plus those pending deletion.\r\n */\r\n@property (nonatomic, readonly) NSSet *deletedPersistentRoots;\r\n```\r\n\r\nThe problem is `-initWithStore:modelDescriptionRepository:` calls `[_store persistentRootUUIDs]`, which only returns non-deleted UUIDs."}}