{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1761","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1761/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1761/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1761/events","html_url":"https://github.com/realm/realm-cocoa/pull/1761","id":68817953,"number":1761,"title":"Cascade Delete Relationships","user":{"login":"LoganWright","id":5750489,"avatar_url":"https://avatars.githubusercontent.com/u/5750489?v=3","gravatar_id":"","url":"https://api.github.com/users/LoganWright","html_url":"https://github.com/LoganWright","followers_url":"https://api.github.com/users/LoganWright/followers","following_url":"https://api.github.com/users/LoganWright/following{/other_user}","gists_url":"https://api.github.com/users/LoganWright/gists{/gist_id}","starred_url":"https://api.github.com/users/LoganWright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoganWright/subscriptions","organizations_url":"https://api.github.com/users/LoganWright/orgs","repos_url":"https://api.github.com/users/LoganWright/repos","events_url":"https://api.github.com/users/LoganWright/events{/privacy}","received_events_url":"https://api.github.com/users/LoganWright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-16T00:40:32Z","updated_at":"2015-04-24T20:41:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/realm-cocoa/pulls/1761","html_url":"https://github.com/realm/realm-cocoa/pull/1761","diff_url":"https://github.com/realm/realm-cocoa/pull/1761.diff","patch_url":"https://github.com/realm/realm-cocoa/pull/1761.patch"},"body":"Hi @realm!\r\n\r\nI thought I'd take a shot at implementing some cascade delete relationships and see what you think.\r\n\r\nFrom what I can see, the implementation is working, but that doesn't always mean it's right.  If you guys have any issues for whatever reason, let me know and I'll see if I can adjust my approach.\r\n\r\nBasically, you override `cascadeProperties` on your realm object like so to indicate cascade relationships:\r\n\r\n```ObjC\r\n+@implementation SomeRealmObject : RLMObject\r\n+ (NSArray *)cascadeProperties {\r\n    return @[@\"someRealmProperty\",\r\n             @\"someOtherRealmProperty\"];\r\n}\r\n@end\r\n```\r\n\r\nBest,\r\n\r\nLogan"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/96059089","html_url":"https://github.com/realm/realm-cocoa/pull/1761#issuecomment-96059089","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1761","id":96059089,"user":{"login":"LoganWright","id":5750489,"avatar_url":"https://avatars.githubusercontent.com/u/5750489?v=3","gravatar_id":"","url":"https://api.github.com/users/LoganWright","html_url":"https://github.com/LoganWright","followers_url":"https://api.github.com/users/LoganWright/followers","following_url":"https://api.github.com/users/LoganWright/following{/other_user}","gists_url":"https://api.github.com/users/LoganWright/gists{/gist_id}","starred_url":"https://api.github.com/users/LoganWright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoganWright/subscriptions","organizations_url":"https://api.github.com/users/LoganWright/orgs","repos_url":"https://api.github.com/users/LoganWright/repos","events_url":"https://api.github.com/users/LoganWright/events{/privacy}","received_events_url":"https://api.github.com/users/LoganWright/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T20:41:34Z","updated_at":"2015-04-24T20:41:34Z","body":"Hi @jpsim \r\n\r\nAt least I'm not crazy that the relationships weren't functioning properly!\r\n\r\nI fully agree that this is the best place to have the logic, I'd be happy to wrap it once it's implemented in the core, but it sounds like you guys aren't quite ready yet.  Is there any sort of ETA on that (I know you guys have been backed up on Swift support, multiple processes, etc.)\r\n\r\nWould you prefer to leave this pr open in the interim, or shall I close it?"}}