{"action":"opened","issue":{"url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1140","labels_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1140/labels{/name}","comments_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1140/comments","events_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1140/events","html_url":"https://github.com/magicalpanda/MagicalRecord/issues/1140","id":118861519,"number":1140,"title":"Configuration entity to class mapping failed","user":{"login":"lolgear","id":2188522,"avatar_url":"https://avatars.githubusercontent.com/u/2188522?v=3","gravatar_id":"","url":"https://api.github.com/users/lolgear","html_url":"https://github.com/lolgear","followers_url":"https://api.github.com/users/lolgear/followers","following_url":"https://api.github.com/users/lolgear/following{/other_user}","gists_url":"https://api.github.com/users/lolgear/gists{/gist_id}","starred_url":"https://api.github.com/users/lolgear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolgear/subscriptions","organizations_url":"https://api.github.com/users/lolgear/orgs","repos_url":"https://api.github.com/users/lolgear/repos","events_url":"https://api.github.com/users/lolgear/events{/privacy}","received_events_url":"https://api.github.com/users/lolgear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T15:36:13Z","updated_at":"2015-11-25T15:36:13Z","closed_at":null,"body":"It seems that configuration mapping `entity -> class` is unused.\r\n\r\n\r\n```\r\n+ (NSEntityDescription *) MR_entityDescriptionInContext:(NSManagedObjectContext *)context\r\n{\r\n    NSString *entityName = [self MR_entityName];//[[self new] entity].name;\r\n    return [NSEntityDescription entityForName:entityName inManagedObjectContext:context];\r\n}\r\n\r\n```\r\n\r\nCould be fixed as this:\r\n\r\n```\r\n+ (NSEntityDescription *) MR_entityDescriptionInContext:(NSManagedObjectContext *)context\r\n{\r\n    NSString *entityName = [[self new] entity].name; // or some preparations for name like module dot separation.\r\n    return [NSEntityDescription entityForName:entityName inManagedObjectContext:context];\r\n}\r\n```"}}