{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1849","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1849/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1849/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1849/events","html_url":"https://github.com/realm/realm-cocoa/issues/1849","id":73682915,"number":1849,"title":"Support overriding Object.init()","user":{"login":"marcvanolmen","id":512457,"avatar_url":"https://avatars.githubusercontent.com/u/512457?v=3","gravatar_id":"","url":"https://api.github.com/users/marcvanolmen","html_url":"https://github.com/marcvanolmen","followers_url":"https://api.github.com/users/marcvanolmen/followers","following_url":"https://api.github.com/users/marcvanolmen/following{/other_user}","gists_url":"https://api.github.com/users/marcvanolmen/gists{/gist_id}","starred_url":"https://api.github.com/users/marcvanolmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcvanolmen/subscriptions","organizations_url":"https://api.github.com/users/marcvanolmen/orgs","repos_url":"https://api.github.com/users/marcvanolmen/repos","events_url":"https://api.github.com/users/marcvanolmen/events{/privacy}","received_events_url":"https://api.github.com/users/marcvanolmen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/swift","name":"swift","color":"d0c0f9"},{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Enhancement","name":"T:Enhancement","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2015-05-06T17:22:17Z","updated_at":"2016-09-15T19:43:47Z","closed_at":"2015-10-01T17:23:39Z","body":"```swift\r\nclass CMSimpleRealmModel: Object {\r\n    dynamic var myKey: String? = NSUUID().UUIDString\r\n    dynamic var name: String? =  \"\"\r\n\r\n    \r\n    override init() {\r\n        self.myKey = NSUUID().UUIDString\r\n        self.name = \"\"\r\n        \r\n        super.init()\r\n    }\r\n    \r\n    override class func primaryKey() -> String {\r\n        return \"myKey\"\r\n    }\r\n    \r\n}\r\n\r\nlet aDefaultRealm = Realm()\r\n\r\nvar anObject = CMSimpleRealmModel()\r\naDefaultRealm.write {\r\n    aDefaultRealm.add(anObject)\r\n}\r\n\r\n```\r\n\r\ncauses the following error to be generated, \r\n\r\n```\r\n/Users/marcvano/dev/cameo/Cameo2/Cameo/CMSoundtrack.swift: 14: 7: fatal error: use of unimplemented initializer 'init(realm:schema:)' for class 'Cameo.CMSimpleRealmModel'\r\n```\r\n\r\nbut reading through the doc it says this is the public one and init(realm:schema:) is the private one."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/247431266","html_url":"https://github.com/realm/realm-cocoa/issues/1849#issuecomment-247431266","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1849","id":247431266,"user":{"login":"tsheaff","id":1238684,"avatar_url":"https://avatars.githubusercontent.com/u/1238684?v=3","gravatar_id":"","url":"https://api.github.com/users/tsheaff","html_url":"https://github.com/tsheaff","followers_url":"https://api.github.com/users/tsheaff/followers","following_url":"https://api.github.com/users/tsheaff/following{/other_user}","gists_url":"https://api.github.com/users/tsheaff/gists{/gist_id}","starred_url":"https://api.github.com/users/tsheaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsheaff/subscriptions","organizations_url":"https://api.github.com/users/tsheaff/orgs","repos_url":"https://api.github.com/users/tsheaff/repos","events_url":"https://api.github.com/users/tsheaff/events{/privacy}","received_events_url":"https://api.github.com/users/tsheaff/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T19:43:47Z","updated_at":"2016-09-15T19:43:47Z","body":"Nice.  I'd be interested in spending some time looking at this. Any other internal Realm discussions I could start with?"}}
{"actor":{"display_login":"tsheaff"}}