{"action":"opened","issue":{"url":"https://api.github.com/repos/jessesquires/JSQCoreDataKit/issues/37","labels_url":"https://api.github.com/repos/jessesquires/JSQCoreDataKit/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQCoreDataKit/issues/37/comments","events_url":"https://api.github.com/repos/jessesquires/JSQCoreDataKit/issues/37/events","html_url":"https://github.com/jessesquires/JSQCoreDataKit/issues/37","id":110051812,"number":37,"title":"Crash on fetch request","user":{"login":"Alexey-Matjuk","id":3024819,"avatar_url":"https://avatars.githubusercontent.com/u/3024819?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexey-Matjuk","html_url":"https://github.com/Alexey-Matjuk","followers_url":"https://api.github.com/users/Alexey-Matjuk/followers","following_url":"https://api.github.com/users/Alexey-Matjuk/following{/other_user}","gists_url":"https://api.github.com/users/Alexey-Matjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexey-Matjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexey-Matjuk/subscriptions","organizations_url":"https://api.github.com/users/Alexey-Matjuk/orgs","repos_url":"https://api.github.com/users/Alexey-Matjuk/repos","events_url":"https://api.github.com/users/Alexey-Matjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Alexey-Matjuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T16:49:38Z","updated_at":"2015-10-06T16:49:38Z","closed_at":null,"body":"I'm not sure if I'm missing something but my app crashes on fetch request. Because it can't find\r\n`initWithEntity:insertIntoManagedObjectContext:` initialiser. I implemented my managed object same way as in the examples:\r\n```\r\nfinal class User: NSManagedObject {\r\n    \r\n    init(context: NSManagedObjectContext, ...) {\r\n            let entity = NSEntityDescription.entityForName(self.dynamicType.modelName, inManagedObjectContext: context)!\r\n            super.init(entity: entity, insertIntoManagedObjectContext: context)\r\n            ...\r\n    }\r\n\r\n}\r\n```\r\nTo fix this issue I change the implementation:\r\n```\r\nfinal class User: NSManagedObject {\r\n\r\n    override init(entity: NSEntityDescription, insertIntoManagedObjectContext context: NSManagedObjectContext?) {\r\n        super.init(entity: entity, insertIntoManagedObjectContext: context)\r\n    }\r\n\r\n    convenience init(context: NSManagedObjectContext, ...) {\r\n            let entity = NSEntityDescription.entityForName(self.dynamicType.modelName, inManagedObjectContext: context)!\r\n            self.init(entity: entity, insertIntoManagedObjectContext: context)\r\n            ...\r\n    }\r\n\r\n}\r\n```\r\nIs there other way to fix this issue? Because overriding initialiser for every managed object looks not very clean for me"}}